-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix adguard-api, add example building for api
Merge in ADGUARD-FILTERS/tsurlfilter from fix/api to master Squashed commit of the following: commit 871a2f2 Author: Maxim Topciu <[email protected]> Date: Tue Apr 2 11:34:58 2024 +0300 use types where possible commit dcfe912 Author: Maxim Topciu <[email protected]> Date: Tue Apr 2 11:31:15 2024 +0300 update changelog commit c49026f Author: Maxim Topciu <[email protected]> Date: Tue Apr 2 11:29:25 2024 +0300 extract zip filename to the constant commit 4351821 Author: Maxim Topciu <[email protected]> Date: Mon Apr 1 19:34:38 2024 +0300 update pnpm file commit 7a0cc4d Author: Maxim Topciu <[email protected]> Date: Mon Apr 1 19:29:58 2024 +0300 revert some configs commit 14df4d9 Author: Maxim Topciu <[email protected]> Date: Mon Apr 1 19:20:11 2024 +0300 Build sample extension with adguard api commit 60c4064 Author: Maxim Topciu <[email protected]> Date: Mon Apr 1 19:12:55 2024 +0300 Fix api, add example building for api
- Loading branch information
Showing
54 changed files
with
1,020 additions
and
466 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
--- | ||
version: 2 | ||
plan: | ||
project-key: AJL | ||
key: AGAPIEXTEST | ||
name: adguard-api-example - tests | ||
variables: | ||
dockerContainer: adguard/node-ssh:18.19--0 | ||
|
||
stages: | ||
- Test: | ||
manual: false | ||
final: false | ||
jobs: | ||
- Test | ||
|
||
Test: | ||
key: TEST | ||
docker: | ||
image: "${bamboo.dockerContainer}" | ||
volumes: | ||
${system.PNPM_DIR}: "${bamboo.cachePnpm}" | ||
tasks: | ||
- checkout: | ||
force-clean-build: 'true' | ||
- script: | ||
interpreter: SHELL | ||
scripts: | ||
- |- | ||
set -e | ||
set -x | ||
# Fix mixed logs | ||
exec 2>&1 | ||
ls -alt | ||
# Set cache directory | ||
pnpm config set store-dir ${bamboo.cachePnpm} | ||
# Install deps | ||
pnpm install | ||
# Lint | ||
pnpm --filter adguard-api-example lint | ||
# Build | ||
npx lerna run build --scope adguard-api-example --include-dependencies | ||
artifacts: | ||
- name: extension.zip | ||
location: packages/examples/adguard-api/build | ||
pattern: extension.zip | ||
shared: true | ||
required: false | ||
final-tasks: | ||
- script: | ||
interpreter: SHELL | ||
scripts: | ||
- |- | ||
set -x | ||
set -e | ||
# Fix mixed logs | ||
exec 2>&1 | ||
ls -la | ||
echo "Size before cleanup:" && du -h | tail -n 1 | ||
pnpm clean | ||
echo "Size after cleanup:" && du -h | tail -n 1 | ||
requirements: | ||
- adg-docker: 'true' | ||
|
||
branches: | ||
create: for-pull-request | ||
delete: | ||
after-deleted-days: '1' | ||
after-inactive-days: '5' | ||
link-to-jira: 'true' | ||
|
||
notifications: | ||
- events: | ||
- plan-status-changed | ||
recipients: | ||
- webhook: | ||
name: Build webhook | ||
url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo | ||
|
||
labels: [ ] | ||
|
||
other: | ||
concurrent-build-plugin: system-default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,3 +84,6 @@ | |
|
||
--- | ||
!include 'logger-test.yaml' | ||
|
||
--- | ||
!include 'adguard-api-example-tests.yaml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.