From 5d1bc42ec6615474911149509ed3f774e3016721 Mon Sep 17 00:00:00 2001 From: Bruno Menezes Date: Tue, 26 Sep 2023 20:09:27 +1300 Subject: [PATCH] feat: Add CI GitHub action. --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..715a50937 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI +on: [push] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +jobs: + ci: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Setup Node.js environment + uses: actions/setup-node@v3 + with: + node-version: latest + cache: 'yarn' + + - name: Install Dependencies + run: yarn install --frozen-lockfile + + - name: Code format check + run: yarn format:check + + - name: Linting + run: yarn lint + + - name: Run Tests + run: yarn test:ci