Skip to content

Commit

Permalink
Create lstest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
qcjxs authored Sep 11, 2023
1 parent 31c0fc8 commit fa18ace
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/lstest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Node CI

on:
push:
branches:
- next
- feat/**
pull_request:
branches:
- next

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x]

steps:
- name: Checkout
uses: actions/checkout@v3
with :
ref : ${{ github.ref || github.head_ref || github.ref_name }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

# Bootstrap project
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: install
uses: pnpm/[email protected]
with:
version: 7
run_install: |
- recursive: true
args: [--frozen-lockfile]
- name: lint
run: pnpm lint
- name: build
run: pnpm build
- name: test
run: pnpm test
env:
CI: true

0 comments on commit fa18ace

Please sign in to comment.