fix(please): clean up runner autocmds when replacing #119
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout commit | |
| uses: actions/checkout@main | |
| - name: Install Please | |
| run: curl https://get.please.build | bash && echo ~/.please >> $GITHUB_PATH | |
| - name: Apply AppArmor profile | |
| run: | | |
| sudo cp .github/workflows/please.please_sandbox /etc/apparmor.d | |
| sudo systemctl reload apparmor.service | |
| - name: Run tests | |
| run: plz test | |
| lint-lua: | |
| name: Lint Lua | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout commit | |
| uses: actions/checkout@main | |
| - name: Lint with Stylua | |
| uses: JohnnyMorganz/stylua-action@main | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| version: latest | |
| args: --check --color always . | |
| lint-build: | |
| name: Lint BUILD | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout commit | |
| uses: actions/checkout@main | |
| - name: Install Please | |
| run: curl https://get.please.build | bash && echo ~/.please >> $GITHUB_PATH | |
| - name: Lint with plz format | |
| run: | | |
| plz format --write | |
| if ! git diff --quiet; then | |
| echo 'The following files need to be formatted with "plz format --write"': | |
| git --no-pager diff --name-only | |
| exit 1 | |
| fi |