Skip to content

Commit

Permalink
fix: release workflow (#51)
Browse files Browse the repository at this point in the history
Fix for release workflow
  • Loading branch information
selfuryon authored Nov 29, 2023
2 parents 8c2d9fe + 7fefe86 commit 380f9ee
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/func-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
branches: ['main']
workflow_dispatch:
workflow_call:

jobs:
functional-tests:
Expand All @@ -23,7 +24,7 @@ jobs:
shell: bash
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: 'Build dkc script'
uses: actions/setup-go@v4
with:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ env:
artifacts_name: 'building-artifacts'

jobs:
tests-and-linters:
tests:
uses: ./.github/workflows/tests.yaml
func-tests:
uses: ./.github/workflows/func-tests.yaml

prepare:
name: Prepare Variables
needs: tests-and-linters
needs: [tests, func-tests]
runs-on: ubuntu-latest
outputs:
release_version: ${{ steps.enver.outputs.release_version }}
Expand All @@ -40,7 +42,7 @@ jobs:
release_version: ${{needs.prepare.outputs.release_version}}
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup Go'
uses: actions/setup-go@v4
Expand Down Expand Up @@ -81,15 +83,15 @@ jobs:
release_version: ${{needs.prepare.outputs.release_version}}
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: ${{ env.artifacts_name }}

- name: Run Changelog CI
uses: saadmk11/[email protected].1
uses: saadmk11/[email protected].2
with:
release_version: ${{ env.release_version }}

Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ on:
pull_request:
branches: ['main']
workflow_dispatch:
workflow_call:

jobs:
go-tests:
runs-on: ubuntu-latest
steps:
- name: Repo Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v4
Expand All @@ -35,10 +36,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Nix
uses: cachix/install-nix-action@v20
uses: cachix/install-nix-action@v22

- name: Run nix flake check
run: nix flake check

0 comments on commit 380f9ee

Please sign in to comment.