feat: use git-derived version in container image #1163
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
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Setup Node.js | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version-file: ".node-version" | |
cache: npm | |
- name: Install dependencies | |
run: npm install | |
- name: Check types | |
run: npm run tsc:check | |
- name: Check lint rules | |
run: npm run lint:check | |
- name: Check format | |
run: npm run format:check | |
- name: Test | |
run: npm run test:ci |