diff --git a/.github/workflows/errors.yaml b/.github/workflows/errors.yaml new file mode 100644 index 0000000..8790ad4 --- /dev/null +++ b/.github/workflows/errors.yaml @@ -0,0 +1,30 @@ +on: + - workflow_dispatch + +name: Errors + +jobs: + test: + strategy: + matrix: + os: + - ubuntu-latest + - windows-latest + - macos-latest + runs-on: ${{ matrix.os }} + steps: + - uses: actions/setup-python@v4 + with: + python-version: '3.7' + - uses: ./ + name: before checkout + continue-on-error: true + - uses: actions/checkout@v3 + with: + # This is necessary so that we have the tags. + fetch-depth: 0 + - uses: ./ + name: invalid VCS + continue-on-error: true + with: + command: dunamai from incorrect diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index b1938d7..c8997e5 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -21,8 +21,9 @@ jobs: with: # This is necessary so that we have the tags. fetch-depth: 0 + - uses: ./ - id: dunamai + id: full with: install: '1.13.2' env-var: MY_VERSION @@ -32,4 +33,8 @@ jobs: run: echo $MY_VERSION from environment variable - if: matrix.os == 'windows-latest' run: echo $env:MY_VERSION from environment variable - - run: echo ${{ steps.dunamai.outputs.version }} from outputs + - run: echo ${{ steps.full.outputs.version }} from outputs + + - uses: ./ + id: minimal + - run: echo ${{ steps.minimal.outputs.version }} from outputs