Skip to content

Commit

Permalink
Switch from Travis CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrukman committed Mar 28, 2021
1 parent 2bf75ec commit 5fa4ef9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
37 changes: 19 additions & 18 deletions .travis.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Google LLC
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,23 +12,24 @@
# See the License for the specific language governing permissions and
# limitations under the License.

dist: bionic
sudo: false
name: "Build & test"

language: generic
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

os:
- linux
- osx
jobs:
run-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ 'ubuntu-20.04', 'macos-10.15' ]
name: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v2

branches:
only:
- master

matrix:
allow_failures:
- os: osx

fast_finish: true

script: make test
- name: Run tests
run: make test VERBOSE=1
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Easyfix

[![Build Status](https://travis-ci.org/mbrukman/easyfix.svg?branch=master)](https://travis-ci.org/mbrukman/easyfix)
[![Build Status][github-ci-badge]][github-ci-url]

[github-ci-badge]: https://github.com/mbrukman/easyfix/actions/workflows/main.yml/badge.svg
[github-ci-url]: https://github.com/mbrukman/easyfix/actions/workflows/main.yml

Easyfix is a tool for making easy fixes to text files, enabling simple
large-scale cleanups of your code, documentation, or any other files.
Expand Down

0 comments on commit 5fa4ef9

Please sign in to comment.