Merge pull request #29 from matrix-org/kegan/rm-old #33
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: ["main"] | |
pull_request: | |
permissions: | |
packages: read | |
# Note: from https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs | |
# > If you specify the access for any of these scopes, all of those that are not specified are set to none. | |
jobs: | |
check-signoff: | |
if: "github.event_name == 'pull_request'" | |
uses: "matrix-org/backend-meta/.github/workflows/sign-off.yml@v2" | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install | |
run: yarn install | |
- name: Build | |
run: yarn build | |
- name: Lint | |
run: yarn lint ./src | |
- name: Test | |
run: yarn test | |
- name: Docker Build | |
run: docker build -t tardis . |