Skip to content

Commit

Permalink
Merge pull request #72 from displague/gh-workflow
Browse files Browse the repository at this point in the history
add initial github workflow for linting and doc checking
  • Loading branch information
displague authored Aug 10, 2020
2 parents e23f301 + 0283c4d commit 8dd01cf
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 'ci'

on:
push:
branches:
- master
pull_request:

jobs:
test:
name: Lint
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.14' ]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Restore Cache
uses: actions/cache@v2
id: cache
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- run: touch ~/.packet-cli.yaml
- name: Detect formatting and build errors
run: make
env:
PACKET_TOKEN: bogus
- name: Detect Uncommitted Docs
run: git diff docs

0 comments on commit 8dd01cf

Please sign in to comment.