From 1142260a19442cdb88f0a3c119eaa5b1a88cd953 Mon Sep 17 00:00:00 2001 From: bigopon Date: Sat, 21 May 2022 23:40:34 +1000 Subject: [PATCH] build: upgrade ci, change to gh action --- .circleci/config.yml | 62 -------------------------------------- .github/workflows/main.yml | 14 +++++++++ 2 files changed, 14 insertions(+), 62 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/main.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 21b1c59..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,62 +0,0 @@ -# Defaults for all jobs - -defaults: &defaults - working_directory: ~/repo - docker: - - image: aureliaeffect/circleci-v1:latest - -# Variables -var_1: &cache_key aurelia-{{ .Branch }}-{{ checksum "package.json" }}{{ checksum "package-lock.json" }} - -version: 2 -jobs: - install: - <<: *defaults - steps: - - checkout - - run: npm ci - - save_cache: - key: *cache_key - paths: - - node_modules - - build: - <<: *defaults - steps: - - checkout - - restore_cache: - key: *cache_key - - run: gulp build - - store_artifacts: - path: ./dist - - unit_tests: - <<: *defaults - steps: - - checkout - - restore_cache: - key: *cache_key - - run: gulp test - - lint: - <<: *defaults - steps: - - checkout - - restore_cache: - key: *cache_key - - run: gulp lint - -workflows: - version: 2 - default_workflow: - jobs: - - install - - build: - requires: - - install - - unit_tests: - requires: - - install - - lint: - requires: - - install diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..00281fe --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,14 @@ +name: main +on: [push] + +jobs: + + ci: + timeout-minutes: 10 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 16 + - run: npm run cut-release