From 6e3acfde46fc6ecad6d23d3b9eb9322a1af727b6 Mon Sep 17 00:00:00 2001 From: zhongsp Date: Fri, 29 Mar 2024 15:33:33 +0800 Subject: [PATCH] gh action --- .github/workflows/nodejs.yml | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 53e25ee7..12f908b3 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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