Bump sbt/setup-sbt from 8a071aa780c993c7a204c785d04d3e8eb64ef272 to 75854e74d1300e4a4ec393739ca8633856901359 #14778
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: typescript | |
on: | |
pull_request: | |
push: # Do not rely on `push` for PR CI - see https://github.com/guardian/mobile-apps-api/pull/2760 | |
branches: | |
- main # Optimal for GHA workflow caching - see https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
typescript: | |
name: Typescript | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: yarn | |
- name: Install | |
run: yarn | |
- name: Lint files | |
run: yarn eslint static/src/javascripts --ext=ts,tsx | |
- name: Check typescript | |
run: yarn tsc |