Skip to content

Commit

Permalink
Added github actions, bye bye travis
Browse files Browse the repository at this point in the history
  • Loading branch information
odino committed Mar 30, 2021
1 parent 246e142 commit e8575e8
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 83 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: tests

# Run this workflow every time a new commit pushed to your repository
on: push

jobs:
linux:
name: Run tests on linux
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16.0'
- name: run tests
run: |
go test `go list ./... | grep -v "/js"` -vet=off -v -covermode=count -coverprofile=coverage.out
go get -u github.com/jandelgado/gcov2lcov
cat coverage.out | gcov2lcov > coverage.lcov
env:
CONTEXT: abs
- name: coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage.lcov
win:
name: Run tests on windows
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16.0'
- name: run tests
run: |
rm ./js*
go test ./...
env:
CONTEXT: abs
macos:
name: Run tests on macos
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16.0'
- name: run tests
run: |
go test `go list ./... | grep -v "/js"`
env:
CONTEXT: abs
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</p>

<p align="center">
<a href="https://travis-ci.com/abs-lang/abs"><img alt="Travis Status" src="https://travis-ci.com/abs-lang/abs.svg?branch=master"></a>
<a href="https://github.com/abs-lang/abs"><img alt="GitHub branch checks state" src="https://img.shields.io/github/checks-status/abs-lang/abs/master"></a>
<a href="https://github.com/abs-lang/abs"><img alt="License" src="https://img.shields.io/github/license/abs-lang/abs.svg"></a>
<a href="https://github.com/abs-lang/abs"><img alt="Version" src="https://img.shields.io/github/release-pre/abs-lang/abs.svg"></a>
<img alt="undefined" src="https://img.shields.io/github/release-date/abs-lang/abs.svg?style=flat">
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</p>

<p align="center">
<a href="https://travis-ci.com/abs-lang/abs"><img alt="Travis Status" src="https://travis-ci.com/abs-lang/abs.svg?branch=master"></a>
<a href="https://github.com/abs-lang/abs"><img alt="GitHub branch checks state" src="https://img.shields.io/github/checks-status/abs-lang/abs/master"></a>
<a href="https://github.com/abs-lang/abs"><img alt="License" src="https://img.shields.io/github/license/abs-lang/abs.svg"></a>
<a href="https://github.com/abs-lang/abs"><img alt="Version" src="https://img.shields.io/github/release-pre/abs-lang/abs.svg"></a>
<img href="https://github.com/abs-lang/abs/releases" alt="undefined" src="https://img.shields.io/github/release-date/abs-lang/abs.svg?style=flat">
Expand Down
59 changes: 0 additions & 59 deletions js/js.go

This file was deleted.

Binary file added main
Binary file not shown.

0 comments on commit e8575e8

Please sign in to comment.