Skip to content

Commit

Permalink
ci: use running-workflow-name
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Jun 7, 2023
1 parent 649d42c commit a779f4f
Show file tree
Hide file tree
Showing 8 changed files with 187 additions and 291 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/macos.yaml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/release-dry-run.yaml

This file was deleted.

76 changes: 41 additions & 35 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,44 +10,12 @@ on:
- v*

jobs:
ensure-dry-run:
runs-on: ubuntu-latest
steps:
- name: Ensure release/dry-run PASS
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'dry-run'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
allowed-conclusions: success
ensure-tests:
runs-on: ubuntu-latest
steps:
- name: Ensure tests PASS
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'tests'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
allowed-conclusions: success
ensure-tools:
runs-on: ubuntu-latest
steps:
- name: Ensure tools PASS
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'tools'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
allowed-conclusions: success
publish:
runs-on: ubuntu-latest
needs:
- ensure-dry-run
- ensure-tests
- ensure-tools
steps:
- uses: actions/checkout@v3
- run: git fetch --prune --unshallow
Expand Down Expand Up @@ -80,9 +48,47 @@ jobs:
GORELEASER_MOUNT_CONFIG: true
# using PAT as homebrew is located in different repo
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
homebrew:
test-upgrade:
runs-on: upgrade-tester
needs:
- publish
steps:
- uses: actions/checkout@v3
- run: git fetch --prune --unshallow
- name: set environment
uses: HatsuneMiku3939/direnv-action@v1
- uses: actions/setup-go@v3
with:
go-version: "${{ env.GOLANG_VERSION }}"
- name: configure variables
run: |
echo "RELEASE_TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
test_required=$(./script/upgrades.sh test-required ${{ github.event.inputs.tag }})
echo "TEST_REQUIRED=$test_required" >> $GITHUB_ENV
- name: run test
if: env.TEST_REQUIRED == 'true'
run: |
cd tests/upgrade
UPGRADE_BINARY_VERSION=${{ env.RELEASE_TAG }} make test
- name: dump stderr
if: always() && steps.test.outcome != 'skipped'
run: cat .cache/run/upgrade/stderr.log
- name: upload stderr
if: always() && steps.test.outcome != 'skipped'
uses: actions/upload-artifact@v3
with:
name: stderr.log
path: .cache/run/upgrade/stderr.log
- name: upload stdout
if: always() && steps.test.outcome != 'skipped'
uses: actions/upload-artifact@v3
with:
name: stdout.log
path: .cache/run/upgrade/stdout.log
notify-homebrew:
runs-on: ubuntu-latest
needs: [ publish ]
needs:
- publish
steps:
- uses: actions/checkout@v3
with:
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/shellcheck.yaml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/sims.yaml

This file was deleted.

Loading

0 comments on commit a779f4f

Please sign in to comment.