Merge pull request #80 from danskernesdigitalebibliotek/DDFBRA-286-fi… #298
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: Type check | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
# Make sure the actual branch is checked out when running on pull requests. | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 # 👈 Required to retrieve git history | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run typescript compile check | |
run: npx tsc --noEmit |