Skip to content

Move test demo apps out of Bazel to ease Go version deprecation and support testing offsetgen instrumentation #3152

Move test demo apps out of Bazel to ease Go version deprecation and support testing offsetgen instrumentation

Move test demo apps out of Bazel to ease Go version deprecation and support testing offsetgen instrumentation #3152

Workflow file for this run

---
name: pr-linter
on:
pull_request
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
get-linter-image:
uses: ./.github/workflows/get_image.yaml
with:
image-base-name: "linter_image"
run-container-lint:
runs-on: oracle-8cpu-32gb-x86-64
needs: get-linter-image
container:
image: ${{ needs.get-linter-image.outputs.image-with-tag }}
options: --cpus 7
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 100
- name: yarn cache
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
with:
path: ./src/ui/.yarn/cache
key: yarn-cache-${{ hashFiles('src/ui/yarn.lock', 'src/ui/.yarnrc.yml') }}
restore-keys: |
yarn-cache-
- name: Add pwd to git safe dir
run: git config --global --add safe.directory `pwd`
- name: Fetch main
run: git fetch origin main:main
- name: Check merge base
run: git merge-base origin/main HEAD # This is what arc uses to determine what changes to lint.
- name: Run arc lint
run: arc lint --apply-patches --trace
- name: Fail if any files changed
shell: bash
run: |
if [[ $(git status --porcelain=v1 | wc -l) -ne 0 ]]; then
echo "Please apply the autofix patches suggested by arc lint."
echo "Changed files:"
git diff --name-only
exit 1
fi