From 27c63bc6649bcfae3e384be2c13008183643b452 Mon Sep 17 00:00:00 2001 From: Daniel Williams Date: Tue, 6 Feb 2024 13:41:46 +0000 Subject: [PATCH] test: using github actions --- .circleci/config.yml | 65 -------------------------------------- .github/workflows/test.yml | 29 +++++++++++++++++ 2 files changed, 29 insertions(+), 65 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/test.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index b3358642cf..0000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,65 +0,0 @@ -version: 2.1 - -aliases: - - &defaults - working_directory: /tmp/storybook - docker: - - image: cimg/node:20.9.0 - -jobs: - build: - <<: *defaults - steps: - - checkout - - restore_cache: - name: Restore core dependencies cache - keys: - - core-dependencies-v4-{{ checksum "yarn.lock" }} - - run: - name: Install dependencies - command: yarn install - - run: - name: build - command: yarn build - - save_cache: - name: Cache core dependencies - key: core-dependencies-v4-{{ checksum "yarn.lock" }} - paths: - - ~/.cache - - node_modules - - /root/.cache - - persist_to_workspace: - root: . - paths: - - node_modules - - packages - - lint: - <<: *defaults - steps: - - checkout - - attach_workspace: - at: . - - run: - name: Lint - command: yarn lint - test: - <<: *defaults - steps: - - checkout - - attach_workspace: - at: . - - run: - name: Test - command: yarn test:ci - -workflows: - test: - jobs: - - build - - lint: - requires: - - build - - test: - requires: - - build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000000..4a80a81355 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Checks + +on: + push: + branches: + - next + pull_request: + types: [opened, synchronize, reopened] + +jobs: + build: + name: Check everything + strategy: + fail-fast: false + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set node version + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: install and compile + run: yarn + - name: build + run: yarn build + - name: lint + run: yarn lint + - name: test + run: yarn test