Skip to content

Commit

Permalink
Merge pull request #133 from atc0005/refresh-github-actions-workflows
Browse files Browse the repository at this point in the history
Refresh GHAWs: expand linting, switch to GHCR
  • Loading branch information
atc0005 committed Feb 4, 2022
2 parents 0194d5a + 80eab64 commit eaab5cd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/lint-and-build-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,21 @@ jobs:
name: Lint codebase
runs-on: ubuntu-latest
timeout-minutes: 10
# Don't flag the whole workflow as failed if "experimental" matrix jobs
# fail. This allows the unstable image linting tasks to fail without
# marking the oldstable and stable image linting jobs as failed.
continue-on-error: ${{ matrix.experimental }}
strategy:
# Don't stop all workflow jobs if the unstable image linting tasks fail.
fail-fast: false
matrix:
container-image: ["go-ci-oldstable", "go-ci-stable"]
experimental: [false]
include:
- container-image: "go-ci-unstable"
experimental: true
container:
image: index.docker.io/atc0005/go-ci:go-ci-lint-only
image: "ghcr.io/atc0005/go-ci:${{ matrix.container-image}}"

steps:
- name: Check out code
Expand Down Expand Up @@ -52,7 +65,7 @@ jobs:
container-image: ["go-ci-oldstable", "go-ci-stable", "go-ci-unstable"]

container:
image: "index.docker.io/atc0005/go-ci:${{ matrix.container-image}}"
image: "ghcr.io/atc0005/go-ci:${{ matrix.container-image}}"

steps:
- name: Check out code
Expand All @@ -71,7 +84,7 @@ jobs:
container-image: ["go-ci-oldstable", "go-ci-stable", "go-ci-unstable"]

container:
image: "index.docker.io/atc0005/go-ci:${{ matrix.container-image}}"
image: "ghcr.io/atc0005/go-ci:${{ matrix.container-image}}"

steps:
- name: Print go version
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/lint-and-build-using-make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
# Default: 360 minutes
timeout-minutes: 10
container:
image: "index.docker.io/golang:latest"
# Use (lightly touched) mirror of current "vanilla" upstream golang image
image: "ghcr.io/atc0005/go-ci:go-ci-stable-mirror-build"

steps:
- name: Print go version
Expand Down Expand Up @@ -58,7 +59,8 @@ jobs:
# Default: 360 minutes
timeout-minutes: 10
container:
image: "index.docker.io/golang:latest"
# Use (lightly touched) mirror of current "vanilla" upstream golang image
image: "ghcr.io/atc0005/go-ci:go-ci-stable-mirror-build"

steps:
- name: Print go version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-and-test-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
container:
image: index.docker.io/atc0005/go-ci:go-ci-lint-only
image: ghcr.io/atc0005/go-ci:go-ci-lint-only

steps:
- name: Check out code
Expand Down

0 comments on commit eaab5cd

Please sign in to comment.