-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Travis CI with GitHub Actions (#81)
* Replace Travis with GHA * add separate workflow for PRs to avoid badge interference
- Loading branch information
1 parent
d0e696d
commit 1bc12d8
Showing
5 changed files
with
93 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# This workflow will do a clean install of the dependencies and run tests across different versions | ||
|
||
name: Ballerina / main | ||
|
||
on: | ||
push: | ||
branches: [master, main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ci: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest] | ||
java-version: [8] | ||
ballerina-version: [0.991.0] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
|
||
- name: Install project dependencies | ||
shell: bash | ||
env: | ||
BALLERINA_VERSION: ballerina-${{ matrix.ballerina-version }} | ||
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: Run exercism/ballerina ci (runs tests) for all exercises | ||
run: | | ||
cd exercises | ||
bash -xe run_ballerina_tests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This workflow will do a clean install of the dependencies and run tests across different versions | ||
|
||
name: Ballerina / PR | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
ci: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest] | ||
java-version: [8] | ||
ballerina-version: [0.991.0] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
|
||
- name: Install project dependencies | ||
shell: bash | ||
env: | ||
BALLERINA_VERSION: ballerina-${{ matrix.ballerina-version }} | ||
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: Run exercism/ballerina ci (runs tests) for all exercises | ||
run: | | ||
cd exercises | ||
bash -xe run_ballerina_tests.sh |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters