-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #511 from ampproject/master
Snapshot release version 6.
- Loading branch information
Showing
27 changed files
with
348 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Check prerequisites | ||
on: [push, pull_request] | ||
jobs: | ||
check-format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Go 1.16 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: '1.16' | ||
|
||
- name: Install goimports | ||
run: go get golang.org/x/tools/cmd/goimports | ||
|
||
- name: Checkout the repository | ||
uses: actions/checkout@v2 | ||
|
||
# Comment this out for now until amppackager passes goimports. | ||
# https://github.com/ampproject/amppackager/issues/506 | ||
# - name: Check formatting with goimports | ||
# run: | | ||
# if $(go env GOPATH)/bin/goimports -d . | grep . ; then | ||
# exit 1 | ||
# fi | ||
|
||
go-vet: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Go 1.16 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: '1.16' | ||
|
||
- name: Checkout the repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Diagnose the code with go vet | ||
# TODO(banaag): Turn on composite checking when | ||
# https://github.com/ampproject/amppackager/issues/507 is fixed. | ||
run: go vet -composites=false ./... | ||
|
||
go-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Go 1.16 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: '1.16' | ||
|
||
- name: Checkout the repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run the tests | ||
run: go test ./... |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.