Skip to content

Merge pull request #174 from kube-logging/dependabot/github_actions/g… #125

Merge pull request #174 from kube-logging/dependabot/github_actions/g…

Merge pull request #174 from kube-logging/dependabot/github_actions/g… #125

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
build-and-test:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: '.go-version'
- name: Build
run: make GOFLAGS="-v" build
- name: Test
run: make GOFLAGS="-v" test
- name: Check diff
run: make check-diff
license-check:
name: License check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: '.go-version'
- name: Cache licenses
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
key: licensei-v2-${{ hashFiles('go.sum') }}
path: |
.licensei.cache
restore-keys: |
licensei-v2
- name: Download license information for dependencies
env:
GITHUB_TOKEN: ${{ github.token }}
run: make license-cache
- name: Check licenses
env:
GITHUB_TOKEN: ${{ github.token }}
run: make license-check
artifacts:
name: Artifacts
uses: kube-logging/logging-operator/.github/workflows/artifacts.yaml@master
with:
version: "latest"
publish: ${{ github.event_name == 'push' }}
permissions:
contents: read
packages: write
id-token: write
security-events: write