From e0c218ad4ca09878bcb77ca681878af47f1e9092 Mon Sep 17 00:00:00 2001 From: Lorenzo Zottar Date: Fri, 2 Feb 2024 11:30:51 +0100 Subject: [PATCH] Created Check & Test workflow running for each push to main or pull request into main. --- .github/workflows/check-and-test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/check-and-test.yml diff --git a/.github/workflows/check-and-test.yml b/.github/workflows/check-and-test.yml new file mode 100644 index 0000000..83ec577 --- /dev/null +++ b/.github/workflows/check-and-test.yml @@ -0,0 +1,23 @@ +name: Check & Test + +on: + push: + branches: ['main'] + pull_request: + branches: ['main'] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: '20.x' + - run: yarn install --frozen-lockfile + - run: yarn check:all + - run: yarn test