-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (37 loc) · 1.11 KB
/
Action-Test.yml
File metadata and controls
44 lines (37 loc) · 1.11 KB
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: Action-Test
run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
on:
workflow_dispatch:
pull_request:
schedule:
- cron: '0 0 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
jobs:
ActionTestBasic:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
version: ['7.4.0', '7.5.0'] # Specify the versions to test
name: Action-Test - [Basic]
runs-on: ${{ matrix.os }}
steps:
# Need to check out as part of the test, as its a local action
- name: Checkout repo
uses: actions/checkout@v4
- name: Action-Test
uses: ./
with:
Version: ${{ matrix.version }}
- name: Test version
shell: pwsh
run: |
$PSVersionTable | Format-Table -AutoSize
if ($PSVersionTable.PSVersion -ne '${{ matrix.version }}') {
throw "Failed to install the expected version"
}