Skip to content

Commit

Permalink
Migrate from Travis CI to GitHub Actions
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mbrukman authored and robfig committed Mar 19, 2024
1 parent 021fdbd commit c50f1b6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 11 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Go"

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
go:
strategy:
fail-fast: false
matrix:
go: [ '1.14', '1.13', '1.12' ]
os: [ 'ubuntu-22.04' ]
runs-on: ${{ matrix.os }}
name: Go ${{ matrix.go }} on ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

- name: Build
run: go test ./...
env:
GO111MODULE: on
10 changes: 0 additions & 10 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
@@ -1,7 +1,7 @@
# soy

[![GoDoc](http://godoc.org/github.com/robfig/soy?status.png)](http://godoc.org/github.com/robfig/soy)
[![Build Status](https://travis-ci.org/robfig/soy.png?branch=master)](https://travis-ci.org/robfig/soy)
[![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)
[![Go Report Card](https://goreportcard.com/badge/robfig/soy)](https://goreportcard.com/report/robfig/soy)

Go implementation for Soy templates aka [Google Closure
Expand Down

0 comments on commit c50f1b6

Please sign in to comment.