Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
raducristianpopa committed Jan 19, 2024
1 parent d950357 commit 225432e
Show file tree
Hide file tree
Showing 7 changed files with 209 additions and 26 deletions.
11 changes: 8 additions & 3 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
'area: server':
- any:
- changed-files:
- any-glob-to-any-file: 'packages/server/src/**/*'

'area: background':
- any:
- changed-files:
- any-glob-to-any-file: 'src/background/**/*'
- any-glob-to-any-file: 'packages/extension/src/background/**/*'

'area: ci':
- any:
Expand All @@ -11,12 +16,12 @@
'area: content':
- any:
- changed-files:
- any-glob-to-any-file: 'src/content/**/*'
- any-glob-to-any-file: 'packages/extension/src/content/**/*'

'area: popup':
- any:
- changed-files:
- any-glob-to-any-file: 'src/popup/**/*'
- any-glob-to-any-file: 'packages/extension/src/popup/**/*'

'area: documentation':
- any:
Expand Down
41 changes: 35 additions & 6 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ concurrency:
# TODO(@raducristianpopa): add lint/format checks and tests

jobs:
build:
name: Build
build-extension:
name: Build Extension
strategy:
fail-fast: false
matrix:
Expand All @@ -30,7 +30,7 @@ jobs:

- name: Build
shell: bash
run: pnpm build ${{ matrix.browser }}
run: pnpm extension build ${{ matrix.browser }}

- name: Upload artifacts
uses: actions/[email protected]
Expand All @@ -39,8 +39,8 @@ jobs:
path: dist/${{ matrix.browser }}/${{ matrix.browser }}.zip
if-no-files-found: error

test:
name: Test
test-extension:
name: Test Extension
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
Expand All @@ -50,4 +50,33 @@ jobs:
uses: ./.github/actions/setup

- name: Test
run: pnpm test:ci
run: pnpm extension test:ci

build-server:
name: Build Server
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Environment setup
uses: ./.github/actions/setup

- name: Build
shell: bash
run: pnpm wm-server build

# TODO: add tests for server
# test-server:
# name: Test Server
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3

# - name: Environment setup
# uses: ./.github/actions/setup

# - name: Test
# shell: bash
# run: pnpm wm-server test:ci
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Build
shell: bash
run: pnpm build
run: pnpm extension build

- name: Release
uses: softprops/action-gh-release@v1
Expand All @@ -49,7 +49,7 @@ jobs:
prerelease: false
generate_release_notes: true
files: |
./dist/chrome/chrome.zip
./dist/firefox/firefox.zip
./dist/opera/opera.zip
./dist/edge/edge.zip
./packages/extension/dist/chrome/chrome.zip
./packages/extension/dist/firefox/firefox.zip
./packages/extension/dist/opera/opera.zip
./packages/extension/dist/edge/edge.zip
38 changes: 33 additions & 5 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
# TODO(@raducristianpopa): add lint/format checks and tests

jobs:
build:
build-extension:
name: Build extension
strategy:
fail-fast: false
Expand All @@ -24,10 +24,10 @@ jobs:

- name: Build
shell: bash
run: pnpm build ${{ matrix.browser}}
run: pnpm extension build ${{ matrix.browser}}

test:
name: Test
test-extension:
name: Test Extension
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
Expand All @@ -37,4 +37,32 @@ jobs:
uses: ./.github/actions/setup

- name: Test
run: pnpm test:ci
run: pnpm extension test:ci

build-server:
name: Build Server
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Environment setup
uses: ./.github/actions/setup

- name: Build
shell: bash
run: pnpm wm-server build

# test-server:
# name: Test Server
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3

# - name: Environment setup
# uses: ./.github/actions/setup

# - name: Test
# shell: bash
# run: pnpm wm-server test:ci
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,13 @@
"license": "Apache-2.0",
"author": "Interledger Tech Team <[email protected]>",
"scripts": {
"analyze": "bash ./scripts/analyze.sh",
"build": "bash ./scripts/build.sh",
"dev": "bash ./scripts/dev.sh",
"extension": "pnpm --filter @interledger/wm-extension --",
"lint": "concurrently \"lint:*\"",
"lint:fix": "eslint --ext js,jsx,ts,tsx, src --fix",
"lint:eslint": "eslint . --ext .js,.ts,.tsx --max-warnings 0 --ignore-path .gitignore",
"lint:prettier": "prettier \"**/*.(md|json|yml)\" --ignore-path .gitignore --check",
"lint:type": "tsc --noEmit",
"local-signatures": "pnpm tsx --watch ./local-signatures/index.ts",
"test": "jest --maxWorkers=2 --passWithNoTests",
"test:ci": "pnpm test -- --reporters=default --reporters=github-actions"
"wm-server": "pnpm --filter @interledger/wm-server --"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.1.3",
Expand Down
3 changes: 2 additions & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"koa-bodyparser": "^4.4.1"
},
"devDependencies": {
"@types/koa": "^2.14.0",
"@types/koa-bodyparser": "^4.3.12",
"typescript": "^5.2.2"
}

}
124 changes: 124 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 225432e

Please sign in to comment.