Skip to content

Commit

Permalink
chore: update GitHub Actions workflow for static checks
Browse files Browse the repository at this point in the history
  • Loading branch information
yarre-uk committed Jan 20, 2025
1 parent 22582a5 commit 227a5d2
Show file tree
Hide file tree
Showing 2 changed files with 392 additions and 407 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/static-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,28 @@ on:
push:
branches:
- main
- staging
pull_request: {}
workflow_dispatch: {}
- dev
pull_request:

permissions:
actions: read
contents: read

jobs:
test:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
- uses: actions/checkout@v4
with:
node-version: '20'

fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Enable Corepack
run: corepack enable

- uses: actions/cache@v3
id: cache2
with:
path: '**/node_modules'
key: ${{ runner.os }}-npm-${{ hashFiles('**/yarn.lock') }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-npm-

- name: Install project dependencies
if: steps.cache.outputs.cache-hit != 'true'
- name: Prepare Yarn
run: corepack prepare [email protected] --activate
- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Testing
run: yarn tsc --noEmit && yarn lint && yarn build
Loading

0 comments on commit 227a5d2

Please sign in to comment.