Skip to content

Commit

Permalink
chore: add lint and build
Browse files Browse the repository at this point in the history
  • Loading branch information
achauve committed Nov 30, 2023
1 parent b02849c commit 008c055
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 008c055

Please sign in to comment.