ballerina-platform / setup-ballerina

Set up your GitHub Actions workflow with a specific Ballerina version

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Set up your GitHub Actions workflow with a specific Ballerina version

License:Apache License 2.0


Languages

Language:PowerShell 55.6%Language:Ballerina 44.4%