Skip to content

Commit

Permalink
Sync github workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
  • Loading branch information
sylr committed Feb 15, 2023
1 parent e6de4c0 commit 0054ece
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Go
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/container-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ jobs:
checkVersionAndCreatePR:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v3

- name: Run busybox updater
run: |
chmod +x ./scripts/busybox-updater.sh
./scripts/busybox-updater.sh
shell: bash

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
env:
GOBIN: /tmp/.bin
steps:
- name: Checkout code into the Go module directory.
- name: Checkout code
uses: actions/checkout@v3

- name: Install Go
Expand All @@ -38,5 +38,6 @@ jobs:
- name: Check docs
run: make check-docs

- name: Check examples
run: make check-examples
39 changes: 25 additions & 14 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,34 @@ jobs:
env:
GOBIN: /tmp/.bin
steps:
- name: Install Go.
- name: Checkout code
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.20.x

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
path: |
~/.cache/go-build
~/.cache/golangci-lint
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Cross build check.
- name: Cross build check
run: make crossbuild

lint:
runs-on: ubuntu-latest
name: Linters (Static Analysis) for Go
env:
GOBIN: /tmp/.bin
steps:
- name: Checkout code into the Go module directory.
- name: Checkout code
uses: actions/checkout@v3

- name: Install Go
Expand All @@ -48,16 +52,20 @@ jobs:

- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
path: |
~/.cache/go-build
~/.cache/golangci-lint
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Format.
run: make format

- name: Linting & vetting.
- name: Linting & vetting
run: make go-lint

e2e:
strategy:
fail-fast: false
Expand All @@ -69,18 +77,21 @@ jobs:
env:
GOBIN: /tmp/.bin
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Go.
uses: actions/setup-go@v3
with:
go-version: 1.20.x

- name: Check out code into the Go module directory.
uses: actions/checkout@v3

- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
path: |
~/.cache/go-build
~/.cache/golangci-lint
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

- name: Run e2e docker-based tests.
- name: Run e2e docker-based tests
run: make test-e2e GH_PARALLEL=${{ matrix.parallelism }} GH_INDEX=${{ matrix.index }}
4 changes: 2 additions & 2 deletions .github/workflows/mixin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Go
Expand All @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
name: Linters (Static Analysis) for Jsonnet (mixin)
steps:
- name: Checkout code into the Go module directory.
- name: Checkout code
uses: actions/checkout@v3

- name: Install Go
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,19 @@ jobs:
node: [ '14' ]
name: React UI test on Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
- name: install nodejs
uses: actions/setup-node@v2
- name: Checkout code
uses: actions/checkout@v3

- name: Install nodejs
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: make react-app-test

0 comments on commit 0054ece

Please sign in to comment.