This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
61 lines (58 loc) · 2.27 KB
/
test-build-pr.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
58
59
60
61
# Test build for each PR
name: Build with tests
on:
pull_request:
branches: [main]
jobs:
build_ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install java 11
uses: actions/setup-java@v1
with:
java-version: "11"
- name: Download ballerina distribution
uses: wei/wget@v1
with:
args: https://github.com/ballerina-platform/ballerina-distribution/releases/download/v2201.1.0/ballerina-2201.1.0-swan-lake.zip
- run: mkdir extractedDistribution
- name: Unzip ballerina distribution
uses: TonyBogdanov/[email protected]
with:
args: unzip -qq ./ballerina-2201.1.0-swan-lake.zip -d ./extractedDistribution
- run: rm ballerina-2201.1.0-swan-lake.zip
- run: npm ci
- name: Build plugin with tests
uses: GabrielBB/[email protected]
with:
run: ./gradlew clean build
build_windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install java 11
uses: actions/setup-java@v1
with:
java-version: "11"
- run: mkdir extractedDistribution
- name: Download Ballerina distribution
run: Invoke-WebRequest -Uri https://github.com/ballerina-platform/ballerina-distribution/releases/download/v2201.1.0/ballerina-2201.1.0-swan-lake.zip -OutFile extractedDistribution\ballerina-2201.1.0-swan-lake.zip
- name: Unzip Ballerina distribution
run: Expand-Archive -LiteralPath extractedDistribution\ballerina-2201.1.0-swan-lake.zip -DestinationPath extractedDistribution\
- run: rm extractedDistribution\ballerina-2201.1.0-swan-lake.zip
- run: npm ci -f
- name: Build plugin with tests
uses: GabrielBB/[email protected]
with:
run: ./gradlew clean build