switch CI provider
This commit is contained in:
parent
9a8a705444
commit
81b139f4f4
3 changed files with 40 additions and 39 deletions
38
.github/workflows/default.yml
vendored
Normal file
38
.github/workflows/default.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
name: CI
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
default:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version: ['*', 'lts/*']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 4
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Cache pnpm modules
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 6
|
||||
run_install: |
|
||||
- recursive: true
|
||||
- args: [--frozen-lockfile, --strict-peer-dependencies]
|
||||
|
||||
- name: Run Tests
|
||||
run: pnpm run test --if-present
|
Reference in a new issue