chore: add react-router-dom to build #15
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: Tests | |
on: | |
push: | |
branches: ["aperture"] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: ["aperture"] | |
# Builds images for target boards. | |
permissions: | |
contents: read | |
jobs: | |
integration: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [18.x, 21.x] | |
timeout-minutes: 10 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Setup Node.JS ${{ matrix.node }} | |
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: "yarn" | |
- name: Yarn install | |
run: yarn install | |
# - name: Depcheck | |
# run: yarn run deps | |
- name: Build Javascript | |
run: yarn run build | |
- name: Test Js | |
run: yarn run test | |
- name: Lint Javascript | |
run: yarn run lint |