-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(gh-actions): update github actions to latest stable versions
- Loading branch information
1 parent
84f7b79
commit fc536c9
Showing
8 changed files
with
143 additions
and
146 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,32 +1,32 @@ | ||
name: acceptance tests | ||
on: | ||
schedule: | ||
- cron: "0 6 * * 0,3" | ||
|
||
jobs: | ||
acceptance_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
|
||
- name: Set up cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
.bin | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-go- | ||
|
||
- name: Run acceptance tests | ||
env: | ||
CLOUDSIGMA_USERNAME: ${{ secrets.CLOUDSIGMA_USERNAME }} | ||
CLOUDSIGMA_PASSWORD: ${{ secrets.CLOUDSIGMA_PASSWORD }} | ||
CLOUDSIGMA_LOCATION: ${{ secrets.CLOUDSIGMA_LOCATION }} | ||
run: make testacc | ||
#name: acceptance tests | ||
#on: | ||
# schedule: | ||
# - cron: "0 6 * * 0,3" | ||
# | ||
#jobs: | ||
# acceptance_tests: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v2 | ||
# | ||
# - name: Set up Go | ||
# uses: actions/setup-go@v2 | ||
# with: | ||
# go-version: 1.17 | ||
# | ||
# - name: Set up cache | ||
# uses: actions/cache@v2 | ||
# with: | ||
# path: | | ||
# ~/go/pkg/mod | ||
# .bin | ||
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
# restore-keys: ${{ runner.os }}-go- | ||
# | ||
# - name: Run acceptance tests | ||
# env: | ||
# CLOUDSIGMA_USERNAME: ${{ secrets.CLOUDSIGMA_USERNAME }} | ||
# CLOUDSIGMA_PASSWORD: ${{ secrets.CLOUDSIGMA_PASSWORD }} | ||
# CLOUDSIGMA_LOCATION: ${{ secrets.CLOUDSIGMA_LOCATION }} | ||
# run: make testacc |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: "go.mod" | ||
|
||
- name: Install tools | ||
run: make tools | ||
|
||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@v6 | ||
id: import_gpg | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.PASSPHRASE }} | ||
|
||
- name: Generate changelog | ||
run: | | ||
mkdir -p .bin | ||
tools/bin/git-chglog -c .github/changelog/config.yaml -o .bin/DRAFT.md $(git describe --tags $(git rev-list --tags --max-count=1)) | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v6 | ||
with: | ||
args: release -f .github/goreleaser.yaml --clean --release-notes=.bin/DRAFT.md | ||
env: | ||
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Tests | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- "CHANGELOG.md" | ||
- "README.md" | ||
push: | ||
branches: [main] | ||
paths-ignore: | ||
- "CHANGELOG.md" | ||
- "README.md" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: "go.mod" | ||
|
||
- name: Build provider | ||
run: make build | ||
|
||
unit-tests: | ||
name: unit tests | ||
runs-on: ubuntu-latest | ||
needs: build | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: "go.mod" | ||
|
||
- name: Set up cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('go.sum', 'tools/go.sum') }} | ||
restore-keys: ${{ runner.os }}-go- | ||
|
||
- name: Install tools | ||
run: make tools | ||
|
||
- name: Lint source code | ||
run: make lint | ||
|
||
- name: Run unit tests | ||
run: make test |
This file was deleted.
Oops, something went wrong.