diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 25dc5cd..067b618 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,15 +13,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: ['1.20', '1.21', '1.22'] + go-version: ['oldstable', 'stable'] env: VERBOSE: 1 steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Build diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..0a7dac7 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,29 @@ +name: golangci + +on: + push: + branches: + - main + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: 'stable' + - name: golangci-lint + uses: golangci/golangci-lint-action@v5 + with: + version: latest + github-token: ${{ secrets.GITHUB_TOKEN }} + args: --timeout=2m --verbose + annotations: false diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3f1d0db..147a8b3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,13 +12,13 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - run: git fetch --force --tags - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: - go-version: stable + go-version: 'stable' - name: Generate release notes continue-on-error: true run: ./scripts/release-notes.sh ${{github.ref_name}} > ${{runner.temp}}/release_notes.txt