-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.08 KB
/
checkly.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
name: Checkly
on:
workflow_dispatch:
push:
paths:
- ".github/workflows/checkly.yml"
- "checkly/**"
env:
CHECKLY_API_KEY: ${{ secrets.CHECKLY_API_KEY }}
CHECKLY_ACCOUNT_ID: ${{ vars.CHECKLY_ACCOUNT_ID }}
FBS_TEST_USERNAME: ${{ vars.FBS_TEST_USERNAME }}
FBS_TEST_PASSWORD: ${{ secrets.FBS_TEST_PASSWORD }}
defaults:
run:
working-directory: ./checkly
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
package_json_file: "checkly/package.json"
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
cache-dependency-path: "checkly/pnpm-lock.yaml"
- run: pnpm install --frozen-lockfile
- run: pnpm checkly -v
- run: pnpm checkly test --reporter=github --record
id: run-checks
- run: cat checkly-github-report.md > $GITHUB_STEP_SUMMARY
- name: Deploy checks
if: github.ref == 'refs/heads/main' && steps.run-checks.outcome == 'success'
run: pnpm checkly deploy --force