Update actions/setup-node action to v4 #93
Workflow file for this run
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 | |
env: | |
NODE_VERSION: 16 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0 | |
- name: Set up Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "npm" | |
cache-dependency-path: buildAndReleaseTask/package-lock.json | |
- name: Install packages | |
run: npm ci | |
working-directory: buildAndReleaseTask | |
- name: Run lint | |
run: npm run lint | |
working-directory: buildAndReleaseTask | |
- name: Run build | |
run: npm run build | |
working-directory: buildAndReleaseTask | |
- name: Run smoke test | |
# This is a very basic smoke test that imitates the env that an agent runs in | |
working-directory: buildAndReleaseTask | |
env: | |
BUILD_BUILDID: 001 | |
BUILD_DEFINITIONNAME: Azure DevOps Demo CI | |
BUILD_REPOSITORY_PROVIDER: Git | |
BUILD_REPOSITORY_URI: https://github.com/slsa-framework/azure-devops-demo | |
BUILD_SOURCEVERSION: dfcb922ec99fb35bbe408926ce2a745bf922f09b | |
INPUT_ARTIFACTPATH: ../images | |
SYSTEM_TEAMFOUNDATIONCOLLECTIONURI: https://github.com/slsa-framework/ | |
SYSTEM_TEAMPROJECT: azure-devops-demo | |
run: node index.js |