From 008c055da939d96f80d230ff92f41ef0f3f33542 Mon Sep 17 00:00:00 2001 From: Adrien Chauve Date: Thu, 30 Nov 2023 14:40:57 +0100 Subject: [PATCH] chore: add lint and build --- .github/workflows/tests.yml | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..41ea8c4 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,49 @@ +name: Tests + +on: + push: + branches: + - "**" + tags-ignore: + - v* + +concurrency: + cancel-in-progress: true + group: tests-${{ github.ref }} + +jobs: + ############################################################################## + ## TEST APPLICATION + ############################################################################## + test: + name: Test application + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Node setup + uses: actions/setup-node@v3 + with: + node-version: "20" + cache: "yarn" + + - name: Install dependencies + run: yarn --immutable + + - name: Lint + run: yarn lint + + - name: Build + run: yarn build + + # - name: Run tests + # run: yarn test --coverage + + # - name: SonarCloud Scan + # uses: SonarSource/sonarcloud-github-action@master + # env: + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}