Update actions/setup-node action to v4 #98
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@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
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 |