Skip to content

Commit

Permalink
Update CI workflow and add master workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardinius committed Feb 11, 2024
1 parent eb5f265 commit 2258811
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
name: ci-flow

on:
push:
tags:
- v*
branches:
- master
- main
pull_request: {}
workflow_dispatch: {}

jobs:
ci-lint:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: master-flow

on:
push:
tags:
- v*
branches:
- master
- main
workflow_dispatch: {}

jobs:
master-lint:
name: run golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.20.4
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
skip-pkg-cache: true˝
master-test:
name: run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.20.4
- name: Build & test
run: make ci-test
- name: Upload log files
uses: actions/upload-artifact@v4
if: always()
with:
name: test-report.log
path: |
**/*.log
if-no-files-found: error

0 comments on commit 2258811

Please sign in to comment.