Skip to content

Commit

Permalink
ci: rename goreleaser, tag ignore in other ci...
Browse files Browse the repository at this point in the history
- Single cache in unit test ci
  • Loading branch information
pratikbin committed May 14, 2022
1 parent 8a996c1 commit b4911a7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 20 deletions.
File renamed without changes.
2 changes: 2 additions & 0 deletions .github/workflows/gosec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "go.*"
- ".github/workflows/gosec.yaml"
- "!**.md"
tags-ignore:
- "*"

jobs:
gosec:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
paths:
- ".github/workflows/links.yaml"
- "**.md"
tags-ignore:
- "*"

jobs:
linkChecker:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "go.*"
- ".github/workflows/lint.yaml"
- "!**.md"
tags-ignore:
- "*"

permissions:
contents: read
Expand Down
25 changes: 5 additions & 20 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- "go.*"
- ".github/workflows/test.yaml"
- "!**.md"
tags-ignore:
- "*"

jobs:
test:
Expand All @@ -24,30 +26,13 @@ jobs:
go-version: 1.18
- name: Cache go mods
uses: actions/cache@v2
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Cache go mods
uses: actions/cache@v2
if: ${{ matrix.os == 'macos-latest' }}
with:
path: |
~/Library/Caches/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Cache go mods
uses: actions/cache@v2
if: ${{ matrix.os == 'windows-latest' }}
with:
path: |
%LocalAppData%\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
~/go/pkg/mod
key: go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-
- run: go test -v -race ./...

0 comments on commit b4911a7

Please sign in to comment.