Skip to content

Commit

Permalink
Merge pull request #1086 from 99designs/github-actions
Browse files Browse the repository at this point in the history
Use GitHub Actions
  • Loading branch information
mtibben committed Mar 4, 2020
2 parents 587bc81 + df9e7ce commit bb5cb8a
Show file tree
Hide file tree
Showing 11 changed files with 70 additions and 99 deletions.
7 changes: 0 additions & 7 deletions .circleci/check-coverage

This file was deleted.

58 changes: 0 additions & 58 deletions .circleci/config.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .github/workflows/check-coverage
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -euo pipefail
GO111MODULE=off go get github.com/mattn/goveralls

go test -covermode atomic -coverprofile=/tmp/coverage.out -coverpkg=./... $(go list github.com/99designs/gqlgen/... | grep -v example)
goveralls -coverprofile=/tmp/coverage.out -service=github -ignore='example/*/*,example/*/*/*,integration/*,integration/*/*,codegen/testserver/*'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Continuous Integration
on: push

jobs:
lint:
runs-on: ubuntu-latest
container: golang:1.13
steps:
- uses: actions/checkout@v1
- run: go mod download
- run: .github/workflows/check-fmt
- run: .github/workflows/check-linting
- run: .github/workflows/check-generate

test:
runs-on: ubuntu-latest
container: golang:1.13
steps:
- uses: actions/checkout@v1
- run: go mod download
- run: go test -race ./...

coverage:
runs-on: ubuntu-latest
container: golang:1.13
steps:
- uses: actions/checkout@v1
- run: go mod download
- run: .github/workflows/check-coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

integration:
runs-on: ubuntu-latest
container: alpine:3.10
steps:
- uses: actions/checkout@v1
- run: apk add --no-cache --no-progress nodejs npm go musl-dev git bash
- run: go mod download
- run: cd integration ; npm install
- run: .github/workflows/check-integration

federation:
runs-on: ubuntu-latest
container: alpine:3.10
steps:
- uses: actions/checkout@v1
- run: apk add --no-cache --no-progress nodejs npm go musl-dev git bash
- run: go mod download
- run: cd example/federation ; npm install
- run: .github/workflows/check-federation

windows:
runs-on: windows-latest
steps:
- run: git config --global core.autocrlf input
- uses: actions/setup-go@v1
with:
go-version: 1.13
- uses: actions/checkout@v1
- run: go generate ./...
- run: go test -timeout 20m ./...
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# gqlgen [![CircleCI](https://badgen.net/circleci/github/99designs/gqlgen/master)](https://circleci.com/gh/99designs/gqlgen) [![Read the Docs](https://badgen.net/badge/docs/available/green)](http://gqlgen.com/)
# gqlgen ![Continuous Integration](https://github.com/99designs/gqlgen/workflows/Continuous%20Integration/badge.svg) [![Read the Docs](https://badgen.net/badge/docs/available/green)](http://gqlgen.com/)

## What is gqlgen?

Expand Down
33 changes: 0 additions & 33 deletions appveyor.yml

This file was deleted.

0 comments on commit bb5cb8a

Please sign in to comment.