feat: output new release version if one made #175
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
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: Run Deno tests | |
run: deno test --allow-env --allow-run --allow-read --allow-write --junit-path reports/junit.xml | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: junit-results | |
path: reports/junit.xml | |
- name: Annotate failed tests | |
if: always() # Run with test/lint failures. | |
uses: granodigital/[email protected] | |
with: | |
reports: | | |
junit|reports/junit.xml | |
test-it-runs: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read # only offer read permissions for dry-run to prevent accidental deployments | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run deployment tool in dry-run mode | |
uses: ./ | |
with: | |
version: ${{ github.sha }} | |
dry_run_mode: 'true' | |
github_token: ${{ secrets.github_token }} | |
# Test that the config is read by the tool and pre-release versions are working. | |
analyze_commits_config: | | |
{ | |
"branches": [ | |
{ "branch_name": "${{ github.ref_name }}", "prerelease": true, "version_suffix": "test" } | |
] | |
} |