forked from OpenLiberty/liberty-tools-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·68 lines (57 loc) · 2.23 KB
/
Copy pathrun-regression-tests.yml
File metadata and controls
executable file
·68 lines (57 loc) · 2.23 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build and Test VSCode extension
on:
push:
branches: '**'
pull_request:
branches: [main]
jobs:
build:
strategy:
fail-fast: false
matrix:
runtime: [ linux, mac ]
# Removing windows as a standard run flavor runtime: [ linux, mac, windows ]
targetVSCode: [previous, latest ]
buildTool: [maven, gradle]
# As Vscode 1.79 and 1.78 are the only support version for current release, running test with only latest,previous
#Enable it in future for multiple releases as applicable targetVSCode: [ previousMinusOne, previous, latest ]
include:
- runtime: linux
os: ubuntu-latest
- runtime: mac
os: macOS-15
# - runtime: windows
# os: windows-latest
name: Test ${{ matrix.runtime }} - ${{ matrix.buildTool }} - ${{ matrix.targetVSCode }}
runs-on: ${{ matrix.os }}
steps:
# Checkout the eclipse plugin repository.
- name: 'Setup: Checkout plugin'
uses: actions/checkout@v3
# Install the required software.
- name: 'Setup: Install required software'
run: bash ./src/test/resources/ci/scripts/setup.sh
# Build the plugin.
- name: 'Build: Build-Package'
run: bash ./src/test/resources/ci/scripts/exec.sh BUILD
# Archive artifacts
- name: Archive artifacts
if: runner.os == 'linux' && matrix.targetVSCode == 'latest' && matrix.buildTool == 'maven'
uses: actions/upload-artifact@v4.3.4
with:
name: liberty-tools-vscode-${{ github.sha }}
path: ./**/*.vsix
if-no-files-found: warn
retention-days: 7
# Run tests for specific build tool
- name: 'Test: Run ${{ matrix.buildTool }} Tests'
run: bash ./src/test/resources/ci/scripts/exec.sh TEST ${{ matrix.targetVSCode }} ${{ matrix.buildTool }}
# Archive screenshots
- name: Archive screenshots
if: always()
uses: actions/upload-artifact@v4.3.4
with:
name: liberty-tools-vscode-${{ matrix.runtime }}-${{ matrix.buildTool }}-${{ matrix.targetVSCode }}-tests-screenshots
path: ./screenshots/${{ matrix.buildTool }}/*.png
if-no-files-found: warn
retention-days: 7