-
-
Notifications
You must be signed in to change notification settings - Fork 37
47 lines (37 loc) · 1.25 KB
/
ci.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
# This workflow will do a clean install of the dependencies and run tests across different versions
name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, macos-14]
java-version: [11]
ballerina-version: [2201.5.0]
steps:
- name: Checkout code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Setup Java
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b
with:
distribution: microsoft
java-version: ${{ matrix.java-version }}
- name: Install project dependencies
shell: bash
env:
BALLERINA_VERSION: ballerina-${{ matrix.ballerina-version }}-swan-lake
run: |
# Download Ballerina dist
curl -fsSL https://dist.ballerina.io/downloads/${{ matrix.ballerina-version }}/$BALLERINA_VERSION.zip --output $BALLERINA_VERSION.zip
# Unzip the zip file
unzip -q $BALLERINA_VERSION.zip
# Add Ballerina to system path
echo "$(pwd)/$BALLERINA_VERSION/bin" >> $GITHUB_PATH
- name: Verify all exercises
run: ./bin/verify-exercises