Ensure action fails when used so users are pointed to updated docs #180
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: Actions 😎 | |
on: | |
pull_request: | |
push: | |
jobs: | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 20.x | |
- run: yarn | |
- run: yarn lint | |
- run: yarn test | |
- run: yarn build || { echo "build command should always succeed" ; exit 61; } | |
# - run: yarn build --quiet && git diff --quiet dist || { echo "dist should be auto generated" ; exit 62; } | |
requestManualActivationFile: | |
name: Request manual activation file 🔑 | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout repository (required to test local actions) | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Request manual activation file | |
- name: Request manual activation file | |
id: getManualLicenseFile | |
continue-on-error: true | |
uses: ./ | |
- name: Verify error | |
run: | | |
if [ "${{ steps.getManualLicenseFile.outcome }}" != "failure" ]; then | |
echo "Expected failure, got ${{ steps.getManualLicenseFile.outcome }}" | |
exit 1 | |
fi |