Update build.yml #442
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build & test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Install Node | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
# Install & build & test: | |
- run: yarn npm audit --environment production | |
- run: yarn install | |
- run: yarn run build | |
# Coverage report | |
- name: Coveralls GitHub Action | |
uses: coverallsapp/github-action@v1.1.2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |