-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 904 Bytes
/
test.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
name: Test
on:
pull_request:
paths:
- "action.yml"
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ${{ fromJSON(vars.SWI_GLORG_UBUNTU_2204) }}
permissions:
id-token: write
contents: read
steps:
- name: Get Github Token from Vault
uses: Bandwidth/vault-provider-action@v1
with:
export-github-pat: true
- name: Checkout
uses: actions/checkout@v4
- name: Run Test with Local Files
id: generate
uses: ./
with:
branch-name: ci-cd-test
token: ${{ env.GITHUB_TEAM_ACCESS_TOKEN }}
openapi-generator-version: 6.5.0
language: python
api-spec-path: ./utils/bandwidth.yml
config: ./utils/test-config.yml
- name: Delete Branch
if: ${{ always() }}
run: git push origin --delete ci-cd-test
shell: bash