-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert "Armstrong Validation" to GitHub Action
- Loading branch information
1 parent
babe855
commit c270305
Showing
1 changed file
with
36 additions
and
0 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,36 @@ | ||
name: Armstrong Validation | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
armstrong-validation: | ||
name: Armstrong Validation | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22.2 | ||
|
||
- name: Install Go Dependencies | ||
run: | | ||
go version | ||
go install github.com/azure/armstrong@67fe406e78e3b94075932add869f8b11fb4dd0a6 | ||
echo '##vso[task.prependpath]$(HOME)/go/bin' | ||
- name: Setup Node and run `npm ci` | ||
uses: ./.github/actions/setup-node-npm-ci | ||
|
||
- name: Armstrong Validation | ||
run: | | ||
# Keep processing when errors are written. Nonzero exit will mark the | ||
# step as failed. | ||
$ErrorActionPreference = 'Continue' | ||
./eng/scripts/Armstrong-Validation.ps1 -Verbose | ||
shell: pwsh |