Skip to content

Commit

Permalink
ci: add checks to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsier committed Jan 9, 2020
1 parent 47a6abe commit 7b48b75
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 30 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
name: CI Checks
on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
branches:
- "*"

jobs:

check:
name: Check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v1

- uses: actions/setup-go@v1
with:
go-version: 1.12

- uses: actions/checkout@v1
- run: make test

- name: Set up Go 1.12
uses: actions/setup-go@v1
with:
go-version: 1.12
id: go
- run: make format

- name: Test
run: make test
- uses: grandcolline/golang-github-actions@v1.1.0
with:
run: lint
token: ${{ secrets.GITHUB_TOKEN }}

- name: Build
run: make build
- run: make build
37 changes: 19 additions & 18 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,34 @@ env:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

jobs:

deploy:
name: Deploy
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v1

- uses: actions/setup-go@v1
with:
go-version: 1.12

- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "10.x"

- name: Set up Go 1.12
uses: actions/setup-go@v1
with:
go-version: 1.12
id: go
- run: npm install -g serverless

- uses: actions/setup-node@v1
with:
node-version: '10.x'
- run: npm install

- run: npm install -g serverless
- run: make test

- run: npm install
- run: make format

- name: Test
run: make test
- uses: grandcolline/golang-github-actions@v1.1.0
with:
run: lint
token: ${{ secrets.GITHUB_TOKEN }}

- name: Build
run: make build
- run: make build

- name: Deploy
run: make deploy
- run: make deploy

0 comments on commit 7b48b75

Please sign in to comment.