Skip to content

chore(deps): bump the go group across 1 directory with 7 updates #242

chore(deps): bump the go group across 1 directory with 7 updates

chore(deps): bump the go group across 1 directory with 7 updates #242

Workflow file for this run

name: tests and lint
on:
pull_request:
paths-ignore:
- 'CODE_OF_CONDUCT.md'
- 'README.md'
- 'Contributing.md'
workflow_call:
push:
branches:
- main
permissions:
contents: read # for actions/checkout to fetch code
jobs:
test-linux:
runs-on: ubuntu-latest
env:
GOPRIVATE: github.com/open-component-model
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.OCMBOT_APP_ID }}
private_key: ${{ secrets.OCMBOT_PRIV_KEY }}
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: '${{ github.workspace }}/go.mod'
- name: Restore Go cache
uses: actions/cache@v3
with:
path: /home/runner/work/_temp/_github_home/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: git config --global url.https://${{ secrets.OCMBOT_APP_ID }}:${{ steps.generate_token.outputs.token }}@github.com/.insteadOf https://github.com/
- name: Run lint
run: make lint
- name: Run tests
run: make test