Update workflow to run format-check
This commit is contained in:
@@ -7,19 +7,33 @@ on:
|
|||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
prepare-npm:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Use Node.js 16.x
|
- name: Use Node.js 16.15
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.15
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
registry-url: 'https://npm.pkg.github.com'
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: prepare-npm
|
||||||
|
steps:
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- run: npm run build -ws
|
- run: npm run build -ws
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: prepare-npm
|
||||||
|
steps:
|
||||||
- run: npm test -ws
|
- run: npm test -ws
|
||||||
|
format:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: prepare-npm
|
||||||
|
steps:
|
||||||
|
- run: npm run format-check -ws
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user