Add new DNS analytics endpoint to OpenAPI spec #423
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint_openapi: | |
name: Lint OpenAPI Spec | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.tool-versions' | |
cache: yarn | |
- name: Install JS Deps | |
run: yarn install --frozen-lockfile | |
- name: Run linter | |
run: yarn openapi-lint | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
env: | |
BUNDLE_JOBS: 3 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.tool-versions' | |
cache: yarn | |
- name: Install JS Deps | |
run: yarn install --frozen-lockfile | |
- name: Run Tests | |
run: bundle exec rake | |
slack-workflow-status: | |
if: always() | |
name: Post Workflow Status To Slack | |
needs: | |
- test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Slack Workflow Notification | |
uses: Gamesight/slack-workflow-status@master | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL_DEVELOPMENT }} |