Skip to content

test

test #499

Workflow file for this run

name: Lint, Format, and Test
on:
workflow_call:
workflow_dispatch:
pull_request:
push:
branches:
- test-concurrency-group
env:
API_KEY: ${{ secrets.API_KEY }}
APP_ID: ${{ secrets.APP_ID }}
APP_TOKEN: ${{ secrets.APP_TOKEN }}
EXAMPLE_USER_ID: ${{ secrets.EXAMPLE_USER_ID }}
jobs:
# lint:
# name: Lint
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Install dependencies
# run: npm i
# - name: Lint
# run: npm run lint:ci
# format:
# name: Format
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Install dependencies
# run: npm i
# - name: Format
# run: npm run format:ci
# test:
# name: Test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Install dependencies
# run: npm i
# - name: Test
# run: npm run test
test-e2e:
name: Test E2E
runs-on: ubuntu-latest
steps:
- uses: actions-cool/check-user-permission@v2
with:
require: write
id: check_permission
- name: Trigger E2E Workflow in backend-sdk-tests and Wait
if: ${{ steps.check_permission.outputs.require-result == 'true' }}
uses: convictional/[email protected]
with:
owner: passageidentity
repo: backend-sdk-tests
workflow_file_name: integration-tests-complete.yml
github_token: ${{ secrets.BE_SDK_PAT }}
# github.head_ref is only available on PR events, while github.ref_name provides the branch name on other events
client_payload: >-
{
"target_ref":"test-concurrency-group",
"target_sdk":"node",
"use_test_release":true,
"sdk_branch_ref":"${{ github.head_ref || github.ref_name }}"
}