Skip to content

Commit

Permalink
chore: improves CI and added lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
dammy001 authored Apr 5, 2022
1 parent 8d50455 commit 93dbb69
Showing 1 changed file with 38 additions and 6 deletions.
44 changes: 38 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,54 @@ name: ci
on:
push:
jobs:
build:
runs-on: ubuntu-20.04
test:
runs-on: ubuntu-latest

timeout-minutes: 10

strategy:
matrix:
node-version: [17]
node-version: [14.x, 17.x]
os: [ubuntu-latest, windows-latest]

fail-fast: false

steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.1
with:
version: 7.0.0-rc.2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: install
run: pnpm install

- name: test
run: pnpm test:ci

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install pnpm
- uses: pnpm/[email protected]
with:
version: 7.0.0-rc.2

- name: Set node
uses: actions/setup-node@v3
with:
node-version: 17.x
cache: 'pnpm'

- name: Install
run: pnpm i

- name: Lint
run: pnpm run lint

0 comments on commit 93dbb69

Please sign in to comment.