| 1 |
name: Devcontainer |
| 2 |
|
| 3 |
# spell-checker:ignore devcontainers nextest |
| 4 |
|
| 5 |
on: |
| 6 |
pull_request: |
| 7 |
push: |
| 8 |
branches: |
| 9 |
- '*' |
| 10 |
|
| 11 |
permissions: |
| 12 |
contents: read # to fetch code (actions/checkout) |
| 13 |
|
| 14 |
# End the current execution if there is a new changeset in the PR. |
| 15 |
concurrency: |
| 16 |
group: ${{ github.workflow }}-${{ github.ref }} |
| 17 |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} |
| 18 |
|
| 19 |
jobs: |
| 20 |
test: |
| 21 |
name: Verify devcontainer |
| 22 |
runs-on: ubuntu-latest |
| 23 |
timeout-minutes: 45 |
| 24 |
steps: |
| 25 |
- uses: actions/[email protected] |
| 26 |
with: |
| 27 |
persist-credentials: false |
| 28 |
- name: Run test in devcontainer |
| 29 |
uses: devcontainers/[email protected] |
| 30 |
with: |
| 31 |
push: never |
| 32 |
runCmd: | |
| 33 |
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin |
| 34 |
cargo nextest run --hide-progress-bar --profile ci |