Skip to content

Commit c50f1b6

Browse files
mbrukmanrobfig
authored andcommitted
Migrate from Travis CI to GitHub Actions
This simply rewrites the Travis CI config format to GitHub Actions, while keeping the same (old) Go versions (but ignoring "tip" since that's too new). We can incrementally migrate to newer, supported versions of Go after we've validated that this format works with the current Go versions. Fixes #85
1 parent 021fdbd commit c50f1b6

File tree

3 files changed

+31
-11
lines changed

3 files changed

+31
-11
lines changed

.github/workflows/go.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Go"
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
go:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
go: [ '1.14', '1.13', '1.12' ]
15+
os: [ 'ubuntu-22.04' ]
16+
runs-on: ${{ matrix.os }}
17+
name: Go ${{ matrix.go }} on ${{ matrix.os }}
18+
steps:
19+
- name: Checkout repo
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Go
23+
uses: actions/setup-go@v5
24+
with:
25+
go-version: ${{ matrix.go }}
26+
27+
- name: Build
28+
run: go test ./...
29+
env:
30+
GO111MODULE: on

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# soy
22

33
[![GoDoc](http://godoc.org/github.com/robfig/soy?status.png)](http://godoc.org/github.com/robfig/soy)
4-
[![Build Status](https://travis-ci.org/robfig/soy.png?branch=master)](https://travis-ci.org/robfig/soy)
4+
[![Build Status](https://github.com/robfig/soy/actions/workflows/go.yaml/badge.svg?query=branch%3Amaster)](https://github.com/robfig/soy/actions/workflows/go.yaml?query=branch%3Amaster)
55
[![Go Report Card](https://goreportcard.com/badge/robfig/soy)](https://goreportcard.com/report/robfig/soy)
66

77
Go implementation for Soy templates aka [Google Closure

0 commit comments

Comments
 (0)