Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

remove unnecessary permissions #50

remove unnecessary permissions

remove unnecessary permissions #50

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- "main"
jobs:
test:
name: Small tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
- run: make check-generate
- run: make test
e2e:
name: End-to-End Tests
runs-on: ubuntu-22.04
# TODO: add test matrix for kubernetes version
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true
- run: make setup
working-directory: e2e
- run: make start
working-directory: e2e
- run: make test
working-directory: e2e
dry-run:
name: Dry-run release
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup golang
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Setup tag for goreleaser
run: |
echo "GORELEASER_CURRENT_TAG=$(git describe --tags --abbrev=0 --match "v*" || echo v0.0.0)" >> $GITHUB_ENV
- name: GoReleaser
uses: 'goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7'
with:
distribution: goreleaser
version: v1.18.2
args: --snapshot --skip-publish --rm-dist