Skip to content

Commit

Permalink
Switch to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Oct 22, 2021
1 parent 4032d40 commit 2f822e1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 10 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Go
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '42 3 * * 4'

jobs:
test:
name: Test
runs-on: ubuntu-20.04

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Go tip
run: |
sudo rm -fr /opt/hostedtoolcache/go /usr/local/go /usr/bin/go /bin/go
curl -o go.tar.gz -L \
https://github.com/AlekSi/golang-tip/releases/download/tip/master.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go.tar.gz
sudo ln -s /usr/local/go/bin/* /usr/local/bin/
go version
rm go.tar.gz
- name: Run tests
run: go test -v
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

0 comments on commit 2f822e1

Please sign in to comment.