generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 21
40 lines (37 loc) · 1.07 KB
/
pull-requests.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
33
34
35
36
37
38
39
40
name: "Pull Requests"
on:
pull_request_target:
jobs:
approve-pr-tests:
runs-on: ubuntu-latest
environment:
name: "Pull Request Tests"
steps:
- run: "echo 'Execution of tests pending approval'"
lint:
needs: ["approve-pr-tests"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- run: npm ci
- run: npm run lint
test:
needs: ["approve-pr-tests", "lint"]
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- run: npm ci && npm run build
- uses: ./
with:
organization: ${{ secrets.CLOUDFLARE_ACCESS_ORGANIZATION }}
auth_client_id: ${{ secrets.CLOUDFLARE_ACCESS_CLIENT_ID }}
auth_client_secret: ${{ secrets.CLOUDFLARE_ACCESS_CLIENT_SECRET }}
configure_docker_dns: true
- run: curl -I https://www.google.com