Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: CI
on: workflow_call
permissions: {}
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -30,6 +33,8 @@ jobs:
lint:
name: Lint source files
runs-on: ubuntu-latest
permissions:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -65,6 +70,8 @@ jobs:
checkForCommonlyIgnoredFiles:
name: Check for commonly ignored files
runs-on: ubuntu-latest
permissions:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -89,6 +96,8 @@ jobs:
checkPackageLock:
name: Check health of package-lock.json file
runs-on: ubuntu-latest
permissions:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -114,7 +123,8 @@ jobs:
name: Run CodeQL security scan
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read # for actions/checkout
security-events: write # for codeql-action
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -132,6 +142,8 @@ jobs:
buildDemo:
name: Build Demo
runs-on: ubuntu-latest
permissions:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -162,6 +174,8 @@ jobs:
buildRelease:
name: Build release
runs-on: ubuntu-latest
permissions:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
name: PullRequest
on: pull_request
permissions: {}
jobs:
ci:
permissions:
contents: read # for actions/checkout
security-events: write # for codeql-action
uses: ./.github/workflows/ci.yml

dependency-review:
name: Security check of added dependencies
runs-on: ubuntu-latest
permissions:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: Push
on: push
permissions: {}
jobs:
ci:
permissions:
contents: read # for actions/checkout
security-events: write # for codeql-action
uses: ./.github/workflows/ci.yml

deploy-to-gh-pages:
name: Deploy to `npm` branch
needs: ci
Expand All @@ -11,6 +16,8 @@ jobs:
name: github-pages
url: ${{ github.server_url }}/${{ github.repository }}/tree/gh-pages
runs-on: ubuntu-latest
permissions:
contents: read # for actions/checkout
steps:
- name: Checkout `gh-pages` branch
uses: actions/checkout@v3
Expand Down