mirror of
https://github.com/gradle/wrapper-validation-action.git
synced 2025-04-20 06:09:19 +08:00
Update workflow based on 'gradle/actions'
This commit is contained in:
parent
6253261cf7
commit
bc1858b102
21
.github/workflows/check-dist.yml
vendored
21
.github/workflows/check-dist.yml
vendored
@ -23,20 +23,15 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set Node.js 20.x
|
||||
uses: actions/setup-node@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
cache: npm
|
||||
|
||||
- name: Validate package-lock
|
||||
run: npx lockfile-lint --path package-lock.json --allowed-hosts npm yarn --validate-https
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Rebuild the dist/ directory
|
||||
run: npm run build
|
||||
node-version: 20
|
||||
- name: Build
|
||||
run: |
|
||||
npm -v
|
||||
node -v
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
- name: Compare the expected and actual dist/ directories
|
||||
run: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user