From 5fa4ef900c8ba3362931f7d194b3a8af4fbf6a6a Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Sun, 28 Mar 2021 16:03:44 -0400 Subject: [PATCH] Switch from Travis CI to GitHub Actions --- .travis.yml => .github/workflows/main.yml | 37 ++++++++++++----------- README.md | 5 ++- 2 files changed, 23 insertions(+), 19 deletions(-) rename .travis.yml => .github/workflows/main.yml (57%) diff --git a/.travis.yml b/.github/workflows/main.yml similarity index 57% rename from .travis.yml rename to .github/workflows/main.yml index 7a941f0..1ab8fb4 100644 --- a/.travis.yml +++ b/.github/workflows/main.yml @@ -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. @@ -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 diff --git a/README.md b/README.md index 4158b09..6de8a55 100644 --- a/README.md +++ b/README.md @@ -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.