Skip to content

Rename workflows

Rename workflows #1

Workflow file for this run

name: ACM
on:
push:
branches: [ "main" ]
pull_request:
permissions:
contents: read
jobs:
module-integration-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up go environment
uses: actions/setup-go@v4
with:
go-version: 1.22.2
- name: Run integration tests without lifecycle-manager
run: make -C hack/ci run-without-lifecycle-manager
module-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up go environment
uses: actions/setup-go@v4
with:
go-version: 1.22.2
- name: Run unit tests
run: make test
app-gateway-integration-test:
runs-on: ubuntu-latest
steps:
- uses: azure/setup-helm@v4.1.0
id: install
- name: Checkout code
uses: actions/checkout@v4
- name: Set up go environment
uses: actions/setup-go@v4
with:
go-version: 1.22.2
- name: Install k3d
env:
K3D_URL: https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh
DEFAULT_K3D_VERSION: v5.6.0
run: curl --silent --fail $K3D_URL | TAG=$DEFAULT_K3D_VERSION bash
- name: Run unit tests
run: make -C tests/hack/ci k3d-gateway-tests
- name: Archive test results
if: always()
uses: actions/upload-artifact@v4
with:
name: app-gateway-test-results
path: application-gateway-test.log
app-connectivity-validator-integration-test:
runs-on: ubuntu-latest
steps:
- uses: azure/setup-helm@v4.1.0
id: install
- name: Checkout code
uses: actions/checkout@v3
- name: Set up go environment
uses: actions/setup-go@v4
with:
go-version: 1.22.2
- name: Install k3d
env:
K3D_URL: https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh
DEFAULT_K3D_VERSION: v5.6.0
run: curl --silent --fail $K3D_URL | TAG=$DEFAULT_K3D_VERSION bash
- name: Insall yq
run: sudo add-apt-repository ppa:rmescandon/yq && sudo apt update && sudo apt install yq -y
- name: Run unit tests
run: make -C tests/hack/ci k3d-validator-tests
- name: Archive test results
if: always()
uses: actions/upload-artifact@v4
with:
name: application-connectivity-validator-test-results
path: application-connectivity-validator-test.log
trivy:
permissions:
contents: read # for actions/checkout to fetch code
name: Build
runs-on: "ubuntu-20.04"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
scan-ref: '.'
exit-code: 1
format: table
severity: 'UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL'
ignore-unfixed: false
timeout: '5m0s'
vuln-type: 'os,library'
go-vuln-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: vulncheck
uses: golang/govulncheck-action@v1
with:
go-version-input: 1.22.2
go-package: ./...
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22.2'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v4.0.0
with:
# Require: The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
version: v1.56.2
# Optional: working directory, useful for monorepos
# working-directory: somedir
# Optional: golangci-lint command line arguments.
#
# Note: By default, the `.golangci.yml` file should be at the root of the repository.
# The location of the configuration file can be changed by using `--config=`
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0
args: --timeout=5m
# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
# Optional: if set to true, then all caching functionality will be completely disabled,
# takes precedence over all other caching options.
# skip-cache: true
# Optional: if set to true, then the action won't cache or restore ~/go/pkg.
skip-pkg-cache: true
# Optional: if set to true, then the action won't cache or restore ~/.cache/go-build.
# skip-build-cache: true
# Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'.
# install-mode: "goinstall"