Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 Use ballerina action for setup #305

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,16 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04, macos-14]
java-version: [11]
ballerina-version: [2201.5.0]

steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Setup Java
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b
- uses: ballerina-platform/setup-ballerina@7f21a19064107a8c9624a9d552e408965f0835a9
BNAndras marked this conversation as resolved.
Show resolved Hide resolved
name: Install Ballerina
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
version: ${{ matrix.ballerina-version }}

- name: Verify all exercises
run: ./bin/verify-exercises
Loading