Skip to content

Commit

Permalink
Add typescript job to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Apr 18, 2023
1 parent ea1eb73 commit 1b10afb
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,40 @@ jobs:
- name: Run tests
run: yarn lint

typescript:
name: Type checking
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Cache .yarn/cache
uses: actions/cache@v3
env:
cache-name: yarn-cache
with:
path: .yarn/cache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: yarn --immutable
env:
HUSKY: 0

- name: Run type checking
run: yarn tsc

prettier:
name: Prettier
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1b10afb

Please sign in to comment.