Skip to content

Add a pre-flight action to ensure workers are able to execute actions #655

Add a pre-flight action to ensure workers are able to execute actions

Add a pre-flight action to ensure workers are able to execute actions #655

Workflow file for this run

name: Please Servers
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
container:
image: thoughtmachine/please-servers:20240711
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: plz-out/gen/third_party/go
key: ${{ runner.os }}-go-${{ hashFiles('third_party/go/BUILD', 'scripts/Dockerfile') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run tests
run: ./pleasew test --profile ci -p -v 2 --exclude //tests/...
- name: Archive logs
if: always()
uses: actions/upload-artifact@v4
with:
name: logs
path: |
plz-out/log
release:
needs: [test]
runs-on: ubuntu-latest
container:
image: thoughtmachine/please-servers:20240711
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: plz-out/gen/third_party/go
key: ${{ runner.os }}-go-${{ hashFiles('third_party/go/BUILD', 'scripts/Dockerfile') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: ./pleasew build --profile ci -p -v notice //package:release_files
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: thought-machine/release-action@master
with:
version-file: VERSION
change-log-file: ChangeLog
release-files: plz-out/gen/package