Skip to content

Set up your GitHub Actions workflow with a specific Ballerina version

License

Notifications You must be signed in to change notification settings

ballerina-platform/setup-ballerina

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Test Ubuntu Test Windows Test Action GitHub license GitHub issues

Setup Ballerina

This Github action installs Ballerina's build system and package manager command; the bal command.

Inputs

Input Description Required
version Ballerina SwanLake Version yes

Usage

Note: This action is supported on all operating systems (ubuntu, macos, windows)

Ubuntu

    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: ballerina-platform/setup-ballerina@v1
        name: Install Ballerina
        with:
          version: 2201.3.2
      - run: bal version
      - run: bal run hello.bal

Test Ubuntu Source

MacOs

    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v2
      - uses: ballerina-platform/setup-ballerina@v1
        name: Install Ballerina
        with:
          version: 2201.3.2
      - run: bal version
      - run: bal run hello.bal

Test Action Source

Windows

    runs-on: windows-latest
    steps:
      - uses: actions/checkout@v2
      - uses: ballerina-platform/setup-ballerina@v1
        name: Install Ballerina
        with:
          version: 2201.3.2
      - run: bal version
      - run: bal run hello.bal

Test Windows Source

License

The scripts and documentation in this project are released under the Apache License.