Skip to content

Commit

Permalink
CI: Migrate to GHA (exercism#1021)
Browse files Browse the repository at this point in the history
* CI: Migrate to GHA

* Rename .travis.gofmt.sh to .gha.gofmt.sh

* Delete .travis.yml

* Delete appveyor.yml

* Add caching

* Test caching

* Revert "Add caching"

This reverts commit 0beee42.
  • Loading branch information
SaschaMann authored Feb 18, 2022
1 parent 0d998b9 commit d554b9b
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 35 deletions.
File renamed without changes.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
workflow_dispatch:
push:
branches:
- main
pull_request:

permissions:
contents: read

jobs:
tests:
name: Go ${{ matrix.go-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
go-version: ["1.15"]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f

- uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492
with:
go-version: ${{ matrix.go-version }}

- name: Run Tests
run: |
go test -cover ./...
shell: bash

formatting:
name: Go Format
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f

- name: Check formatting
run: ./.gha.gofmt.sh
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

20 changes: 0 additions & 20 deletions appveyor.yml

This file was deleted.

0 comments on commit d554b9b

Please sign in to comment.