-
Notifications
You must be signed in to change notification settings - Fork 34
executable file
·57 lines (47 loc) · 1.65 KB
/
run-regression-tests.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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 ]
# 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-13
# - runtime: windows
# os: windows-latest
name: Build Plugin
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'
uses: actions/upload-artifact@v3
with:
name: liberty-tools-vscode-${{ github.sha }}
path: ./**/*.vsix
if-no-files-found: warn
retention-days: 7
# Build the plugin.
- name: 'Test: RunTests'
run: bash ./src/test/resources/ci/scripts/exec.sh TEST ${{ matrix.targetVSCode }}