Update actions/checkout action to v4 #83
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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
- name: Set up Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.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 |