Merge pull request #35 from DavideCanton/dependabot/npm_and_yarn/foll… #72
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 and run tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- uses: actions/checkout@v4 | |
id: checkout-repo | |
name: Checkout Repository | |
- uses: actions/setup-node@v3 | |
name: Setup node | |
with: | |
node-version: '18.x' | |
- run: yarn | |
name: Install dependencies | |
- run: yarn build | |
name: Build code | |
- run: yarn test | |
name: Run tests | |
- run: yarn docs | |
name: Build docs |