-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 923 Bytes
/
test.yml
File metadata and controls
44 lines (35 loc) · 923 Bytes
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
40
41
42
43
44
name: test
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Run action
uses: ./
- name: Get version
run: openapi-generator-cli version
- name: Run action with version
uses: ./
with:
version: 7.9.0
- name: Check version
shell: bash
run: |
if [[ $(openapi-generator-cli version) != '7.9.0' ]]; then
echo 'Version does not match. See version below:'
openapi-generator-cli --version
exit 1
fi
- name: Run action with name
uses: ./
with:
name: openapi-generator
- name: Check name
run: openapi-generator version