Skip to content

Commit

Permalink
gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongsp committed Mar 29, 2024
1 parent e6d1d4b commit 6e3acfd
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
name: Node CI

name: test
on: [push]

jobs:
build:

test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci
npm run build --if-present
npm test
env:
CI: true
- name: Check out code
uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: yarn install --immutable
- name: Lint TypeScript
run: yarn run test

0 comments on commit 6e3acfd

Please sign in to comment.