-
Notifications
You must be signed in to change notification settings - Fork 5
32 lines (27 loc) · 942 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: tests
on:
push:
branches: [ main ]
pull_request:
types: [ opened, synchronize, reopened, edited, labeled ]
jobs:
tests:
name: tests
# https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution
# https://github.com/orgs/community/discussions/26261
if: ${{ github.event != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci') }}
runs-on: ubuntu-latest
steps:
# https://github.com/hmarr/debug-action
- uses: hmarr/debug-action@v2
- name: Show environment
run: |
echo $GITHUB_EVENT_NAME
echo ${{ github.event }}
echo ${{ github.event.pull_request.labels }}
- name: Ensure workspace ownership
run: echo "chown -R $USER $GITHUB_WORKSPACE" && sudo chown -R $USER $GITHUB_WORKSPACE
- name: Check out code
uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.MY_DEPLOY_KEY }}