name: Checkout-Run-Test
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: write
pages: write
id-token: write
repository-projects: write
pull-requests: write
concurrency:
group: "pages"
cancel-in-progress: false
defaults:
run:
shell: bash
jobs:
build:
runs-on: macos-latest
permissions:
contents: write
pull-requests: write
repository-projects: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Install Spaces CLI
uses: work-spaces/install-spaces@v0.15.22
- name: Spaces Checkout
run: spaces --ci checkout-repo --url=https://github.com/work-spaces/printer-rs --rev=${{ github.head_ref }} --name=${{ github.head_ref }}
timeout-minutes: 10
- name: Spaces Run
run: cd ${{ github.head_ref }} && spaces --ci run //:test
timeout-minutes: 30