generated from mrz1836/go-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(SPV-1087): restore deleted sections.
- Loading branch information
1 parent
590e108
commit ae0be49
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,48 @@ jobs: | |
secrets: | ||
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.ON_PUSH_SLACK_WEBHOOK_URL }} | ||
yamllint: | ||
name: Run yaml linter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Run yaml linter | ||
uses: ibiqlik/[email protected] | ||
asknancy: | ||
name: Ask Nancy (check dependencies) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Write go list | ||
run: go list -json -m all > go.list | ||
- name: Ask Nancy | ||
uses: sonatype-nexus-community/[email protected] | ||
continue-on-error: true | ||
test: | ||
needs: [yamllint, asknancy] | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Install Go from go.mod | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
- name: Cache code | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/go/pkg/mod # Module download cache | ||
~/.cache/go-build # Build cache (Linux) | ||
~/Library/Caches/go-build # Build cache (Mac) | ||
'%LocalAppData%\go-build' # Build cache (Windows) | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Run linter and tests | ||
run: make test-coverage-custom |