Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: release workflow #51

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/changelog-ci@v1.1.1
uses: saadmk11/changelog-ci@v1.1.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
Loading