Skip to content

Commit

Permalink
Improve the github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
EmadMokhtar committed Apr 21, 2024
1 parent eb10d10 commit 31f6a05
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 38 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker
name: Continuous Deployment

on:
push:
Expand Down
23 changes: 21 additions & 2 deletions .github/workflows/golangci-lint.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: golangci-lint
name: Countinue Integration

on:
push:
branches:
Expand Down Expand Up @@ -53,4 +54,22 @@ jobs:
# skip-build-cache: true

# Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'.
# install-mode: "goinstall"
# install-mode: "goinstall"

test:
name: Run Go tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Build
run: go build -v ./...

- name: Test
uses: robherley/go-test-action@v0

26 changes: 0 additions & 26 deletions .github/workflows/go-test.yaml

This file was deleted.

17 changes: 8 additions & 9 deletions .github/workflows/semver-lable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ on:

jobs:
semver_tag_from_pr:
needs: [golangci, test]
permissions:
contents: write
pull-requests: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: "0"
ssh-key: ${{ secrets.SEMVER_GITHUB_ACTION_PRIVATE }}
- name: bump semVer
uses: simontheleg/semver-tag-from-pr-action@v1.4.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_ssh_key: ${{ secrets.semver_github_action }}
- uses: actions/checkout@v3
with:
fetch-depth: "0" # we need full git-history to determine the last semVer tag
- name: bump semVer
uses: simontheleg/semver-tag-from-pr-action@v1.4.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 31f6a05

Please sign in to comment.