mirror of
https://github.com/imjasonh/gcp-metrics-action
synced 2026-07-16 12:12:03 +00:00
initial commit
Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
commit
eb3bfbbb0c
14 changed files with 2071 additions and 0 deletions
32
.github/workflows/use-action.yaml
vendored
Normal file
32
.github/workflows/use-action.yaml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
name: Example Workflow with Metrics
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
example:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: ./
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
gcp-service-account-key: github-actions-metrics-key.json
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- run: npm install
|
||||
- run: npm run lint || echo "No lint script configured"
|
||||
- run: npm test
|
||||
- run: echo "Building project..." && sleep 5 && echo "Build complete"
|
||||
Loading…
Add table
Add a link
Reference in a new issue