Skip to content

repo_fake: muutations are now allowed after adding to a config #98

repo_fake: muutations are now allowed after adding to a config

repo_fake: muutations are now allowed after adding to a config #98

Workflow file for this run

name: lint
on:
push:
branches: ['**']
paths:
- "go.*"
- "**/*.go"
- ".github/workflows/lint.yml"
pull_request:
branches: [main]
paths:
- "go.*"
- "**/*.go"
- "testdata/**"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Set pkgcraft dir env var
run: echo pkgcraft_dir=~/pkgcraft >> $GITHUB_ENV
- name: Download prebuilt pkgcraft-c library
id: download-artifact
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{ secrets.PKGCRAFT_CI_TOKEN }}
repo: pkgcraft/pkgcraft
branch: main
workflow: pkgcraft-c.yml
workflow_conclusion: ""
search_artifacts: true
name: pkgcraft-c-${{ runner.os }}
- name: Unpack library
run: |
mkdir -p "${pkgcraft_dir}"
tar -Jxf pkgcraft-c.tar.xz -C "${pkgcraft_dir}"
- name: Override build variables
run: |
echo "PKG_CONFIG_PATH=${pkgcraft_dir}" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=${pkgcraft_dir}" >> $GITHUB_ENV
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Lint code
uses: golangci/golangci-lint-action@v6