Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Temzasse committed Jun 20, 2023
1 parent b8a8382 commit c463de0
Showing 1 changed file with 46 additions and 30 deletions.
76 changes: 46 additions & 30 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,58 @@
name: CI
on: [push]
jobs:
build:
lint:
name: ⬣ ESLint
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3

- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: 18

- name: 📥 Install deps
run: yarn

- name: 🔬 Lint
run: yarn lint

typecheck:
name: ʦ TypeScript
runs-on: ubuntu-latest
steps:
- name: Begin CI...
uses: actions/checkout@v2
- name: ⬇️ Checkout repo
uses: actions/checkout@v3

- name: Use Node 12
uses: actions/setup-node@v1
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 12.x
cache: 'yarn'
node-version: 18

- name: 📥 Install deps
run: yarn

- name: 🔎 Type check
run: yarn typecheck
test:
name: 🧪 Jest
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3

- name: Use cached node_modules
uses: actions/cache@v1
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
path: node_modules
key: nodeModules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
nodeModules-
cache: 'yarn'
node-version: 18

- name: Install dependencies
run: yarn install --frozen-lockfile
env:
CI: true
- name: 📥 Install deps
run: yarn

- name: Lint
run: yarn lint
env:
CI: true

- name: Test
run: yarn test --ci --coverage --maxWorkers=2
env:
CI: true

- name: Build
run: yarn build
env:
CI: true
- name: 🔬 Test
run: yarn test

0 comments on commit c463de0

Please sign in to comment.