Update to Node 20 #28
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
## | |
# 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 | |
} |