Update workflows to to support manual trigger and rename project #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dry-Run Checkly | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
dry-run: | |
runs-on: ubuntu-latest | |
environment: | |
name: gamma | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: npm install | |
- uses: twingate/github-action@v1 | |
with: | |
# The Twingate Service Key used to connect Twingate to the proper service | |
# Learn more about [Twingate Services](https://docs.twingate.com/docs/services) | |
# | |
# Required | |
service-key: ${{ secrets.TWINGATE_SERVICE_KEY }} | |
- name: Start Checkly Agent | |
run: | | |
docker run -e API_KEY=${{ secrets.CHECKLY_AGENT_API_KEY }} -d checkly/agent:latest | |
# Wait a few seconds for the agent to start up and register | |
sleep 10 | |
- name: Run Checkly Tests | |
run: npx checkly test --private-location=infisical-gamma --reporter=ci -e SITE_URL=${{ secrets.SITE_URL }} CLIENT_ID=${{ secrets.CLIENT_ID }} CLIENT_SECRET=${{ secrets.CLIENT_SECRET }} | |
env: | |
CHECKLY_API_KEY: ${{ secrets.CHECKLY_API_KEY }} | |
CHECKLY_ACCOUNT_ID: ${{ secrets.CHECKLY_ACCOUNT_ID }} |