Remove action for creating pr and use gh cli instead #1126
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: package manager CI | |
on: | |
workflow_dispatch: # Allow manual runs. | |
pull_request: | |
branches: [ 'main' ] | |
push: | |
branches: [ 'main' ] | |
permissions: | |
contents: read | |
jobs: | |
build-and-test: | |
name: CI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.20' | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Build, test | |
run: | | |
cd debian_package_manager | |
make update generate test | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.20' | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
timeout-minutes: 5 | |
with: | |
# version: latest | |
# pinned until https://github.com/golangci/golangci-lint/issues/3862 is fixed | |
version: v1.52 | |
working-directory: debian_package_manager |