From 0588f85f2a5d56fcdac4d04f4652bcc5412e0562 Mon Sep 17 00:00:00 2001 From: Giamir Buoncristiani Date: Wed, 20 Mar 2024 12:58:25 +0100 Subject: [PATCH] ci(workflow): add build and test workflow --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..4637c37 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup Node.js environment + uses: actions/setup-node@v3 + with: + node-version: lts/* + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + +# cancel the jobs if another workflow is kicked off for the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true