Skip to content

Commit

Permalink
chore: add debug script
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Oct 3, 2023
1 parent 6b38178 commit 286580c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ concurrency:
cancel-in-progress: false

jobs:
debug:
name: Debug
runs-on: self-hosted

steps:
- name: Dump env
run: env | sort
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

lint:
name: Lint
timeout-minutes: 10
Expand All @@ -24,14 +36,15 @@ jobs:
with:
node-version: 18

- name: Install
- name: Load cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-

- run: npm ci
- name: Install
run: npm ci

- name: Lint
run: npm run format
Expand All @@ -47,16 +60,15 @@ jobs:
with:
node-version: 18

- name: Install
- name: Load cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-

- run: npm ci
- name: Install
run: npm ci

- name: Test
run: npm run test:cov

- run: echo "https://github.com/nobkd/replace-maps/archive/refs/tags/${{ github.event.release.tag_name }}.zip"
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ jobs:
with:
node-version: 18

- name: Install
- name: Load cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-

- run: npm ci
- name: Install
run: npm ci

- name: Build
run: npm run build
Expand All @@ -41,8 +42,8 @@ jobs:
addon-id: "replace_maps@nobkd.github.io"
addon-path: "out/replace_maps.zip"
source-path: "https://github.com/nobkd/replace-maps/archive/refs/tags/${{ github.event.release.tag_name }}.zip"
approval-note: |
Follow the instructions in AMO-README.md
approval-note: "Follow the instructions in AMO-README.md"
release-note: ${{ github.event.release.body }}
auth-api-issuer: ${{ secrets.AUTH_API_ISSUER }}
auth-api-secret: ${{ secrets.AUTH_API_SECRET }}

Expand Down

0 comments on commit 286580c

Please sign in to comment.