Add support for semantic version as input #34
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: Continuous Integration | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
test-typescript: | |
name: TypeScript Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
id: setup-node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
cache: npm | |
- name: Install Dependencies | |
run: npm ci | |
- name: Check Format | |
run: npm run format:check | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: npm run test | |
test-action: | |
name: GitHub Actions Test | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: | |
- ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Test Local Action | |
uses: ./ | |
with: | |
version: '0.13.1' | |
- name: Ensure humctl version 0.13.1 is installed | |
id: humctl_version_0_13_1 | |
run: | | |
# Check the installed humctl version | |
INSTALLED_VERSION=$(humctl version | awk '{print $3}') | |
echo "Installed humctl version: $INSTALLED_VERSION" | |
# Set the output for comparison | |
echo "::set-output name=installed_version::$INSTALLED_VERSION" | |
- name: Ensure humctl version 0.13.1 is installed | |
if: steps.humctl_version_0_13_1.outputs.installed_version != '0.13.1' | |
run: echo "Installed version (${{ steps.humctl_version_0_13_1.outputs.installed_version }}) does not match the expected version (0.13.1)." | |
exit 1 | |
- name: Test Local Action | |
uses: ./ | |
with: | |
version: '0.13' | |
- name: Ensure humctl is installed | |
id: humctl_version_0_13 | |
run: | | |
# Check the installed humctl version | |
INSTALLED_VERSION=$(humctl version | awk '{print $3}') | |
echo "Installed humctl version: $INSTALLED_VERSION" | |
# Set the output for comparison | |
echo "::set-output name=installed_version::$INSTALLED_VERSION" | |
- name: Ensure humctl version 0.13.7 is installed | |
if: steps.humctl_version_0_13.outputs.installed_version != '0.13.7' | |
run: echo "Installed version (${{ steps.humctl_version_0_13.outputs.installed_version }}) does not match the expected version (0.13.7)." | |
exit 1 |