Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Update GitHub Actions Workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
atc0005 committed May 23, 2020
1 parent 989ee4d commit 6463558
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/lint-and-build-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,17 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Get dependencies
run: |
go get -v -t -d ./...
# NOTE: Disabled in favor of top-level `vendor` folder
#
# - name: Get dependencies
# run: |
# go get -v -t -d ./...

# Force tests to run early as it isn't worth doing much else if the
# tests fail to run properly.
# Note: The `vendor` top-level folder appears to be skipped by default.
- name: Run all tests
run: go test -v ./...
run: go test -mod=vendor -v ./...

- name: Install Go linting tools
run: |
Expand All @@ -86,8 +89,10 @@ jobs:
export PATH=${PATH}:$(go env GOPATH)/bin
make linting
- name: Build with default options
run: go build -v ./cmd/ezproxy-user/
- name: Build with (mostly) default options
# Note: We use the `-mod=vendor` flag to explicitly request that our
# top-level vendor folder be used instead of fetching remote packages
run: go build -v -mod=vendor ./cmd/brick

- name: Build using project Makefile
run: make all
10 changes: 7 additions & 3 deletions .github/workflows/lint-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ jobs:
uses: actions/checkout@v1

- name: Run Markdown linting tools
# The `.markdownlint.yml` file specifies config settings for this
# linter, including which linting rules to ignore.
#
# Note: Explicitly ignoring top-level vendor folder; we do not want
# potential linting issues in bundled documentation to fail linting CI
# runs for *our* documentation
run: |
# The `.markdownlint.yml` file specifies config settings for this
# linter, including which linting rules to ignore.
markdownlint '**/*.md' --ignore node_modules
markdownlint '**/*.md' --ignore node_modules --ignore vendor

0 comments on commit 6463558

Please sign in to comment.