Skip to content

Commit

Permalink
Merge pull request #133 from y-yagi/github-actions
Browse files Browse the repository at this point in the history
Use GitHub Actions for CI
  • Loading branch information
y-yagi authored Dec 24, 2020
2 parents c46a702 + 578df3d commit 37fa947
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 44 deletions.
42 changes: 0 additions & 42 deletions .circleci/config.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI
on: [push]
jobs:

build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.15]
steps:

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: |
go mod download
env:
GO111MODULE: on

- name: Run lint
run: |
export PATH=$PATH:$(go env GOPATH)/bin
go get -u golang.org/x/lint/golint
golint -set_exit_status
env:
GO111MODULE: on

- name: Run test
run: |
go test -v ./...
env:
GO111MODULE: on
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

`jpcal` is a simple calendar command. It contains a Japanese holidays.

[![CircleCI](https://circleci.com/gh/y-yagi/jpcal.svg?style=svg)](https://circleci.com/gh/y-yagi/jpcal)

## Installation

Use `go get` to install this package:
Expand Down

0 comments on commit 37fa947

Please sign in to comment.