test: π fixed test bug,for clear #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build and test | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
buildAndTest: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Check docker version | |
run: | | |
docker --version | |
- name: Check docker info | |
run: | | |
docker info | |
- name: Install dependencies | |
run: | | |
npm install | |
- name: Build | |
run: | | |
npm run build | |
- name: Test | |
run: | | |
npm run test |