Apply test action fixes to correct file
This commit is contained in:
@@ -1,31 +1,18 @@
|
|||||||
name: 'build-test'
|
name: Go Action detection of dependencies
|
||||||
on: # rebuild any PRs and main branch changes
|
on:
|
||||||
pull_request:
|
push
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- 'releases/*'
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- 'releases/*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
go-action-detection:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: 'Checkout Repository'
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
- name: Install Node
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
go-version: ">=1.18.0"
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
- name: Run snapshot action
|
||||||
env:
|
uses: dsp-testing/go-snapshot-action@main
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
with:
|
||||||
|
go-mod-path: go-example/go.mod
|
||||||
- run: npm ci --ignore-scripts
|
go-build-target: go-example/cmd/octocat.go
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
||||||
|
|
||||||
- run: npm rebuild && npm run all
|
|
||||||
|
|||||||
@@ -10,13 +10,22 @@ on: # rebuild any PRs and main branch changes
|
|||||||
- 'releases/*'
|
- 'releases/*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build: # make sure build/ci work properly
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout repository
|
||||||
- run: |
|
uses: actions/checkout@v3
|
||||||
npm ci
|
|
||||||
|
- name: Install Node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
registry-url: 'https://npm.pkg.github.com'
|
||||||
env:
|
env:
|
||||||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
||||||
- run: |
|
|
||||||
npm run all
|
- run: npm ci --ignore-scripts
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
||||||
|
|
||||||
|
- run: npm rebuild && npm run all
|
||||||
|
|||||||
Reference in New Issue
Block a user