Skip to content

Update to Node 20

Update to Node 20 #28

Workflow file for this run

##
# Test the action itself
##
name: Test
on:
pull_request:
push:
branches:
- main
- feature/**
jobs:
# test action on Ubuntu
test-ubuntu:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
- name: Test generating build number on Ubuntu
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
prefix: test
- run: |
if [[ -z "${BUILD_NUMBER}" ]]; then
echo >&2 "BUILD_NUMBER environment variable is undefined!"
exit 1
fi
# test action on Ubuntu
test-windows:
runs-on: windows-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
- name: Test generating build number on Windows
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
prefix: test
- run: |
if (-not (Test-Path env:BUILD_NUMBER)) {
Write-Error "BUILD_NUMBER environment variable is undefined!"
exit 1
}