-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge in ADGUARD-FILTERS/tsurlfilter from fix/AG-30369 to master Squashed commit of the following: commit e5bc36c Merge: e079e90 d992758 Author: Maxim Topciu <mtopciu@adguard.com> Date: Fri Apr 5 12:55:27 2024 +0300 Merge branch 'master' into fix/AG-30369 commit e079e90 Author: Maxim Topciu <mtopciu@adguard.com> Date: Fri Apr 5 12:28:35 2024 +0300 AG-30369 apply review notes commit 289cb2c Author: Maxim Topciu <mtopciu@adguard.com> Date: Thu Apr 4 18:33:10 2024 +0300 AG-30369 comment tests commit ec276e8 Author: Maxim Topciu <mtopciu@adguard.com> Date: Thu Apr 4 18:28:39 2024 +0300 AG-30369 add specs for examples
- Loading branch information
Showing
19 changed files
with
776 additions
and
252 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
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,99 @@ | ||
--- | ||
version: 2 | ||
plan: | ||
project-key: AJL | ||
key: AGTSWEBEXTMVTWOTEST | ||
name: examples-tswebextension-mv2 - 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 tswebextension-mv2 lint | ||
# Build, and after that test | ||
npx lerna run build --scope tswebextension-mv2 --include-dependencies | ||
# # Test | ||
# # TODO: fail if tests are not passing | ||
# pnpm --filter tswebextension-mv2 test | ||
# TODO add artifacts | ||
# 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 |
---|---|---|
@@ -0,0 +1,100 @@ | ||
--- | ||
version: 2 | ||
plan: | ||
project-key: AJL | ||
key: AGTSWEBEXTMVTHREETEST | ||
name: examples-tswebextension-mv3 - 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 tswebextension-mv3 lint | ||
# Build | ||
npx lerna run build --scope tswebextension-mv3 --include-dependencies | ||
# # Test | ||
# # Should be run after build, since test requires build | ||
# # TODO fail if tests are not passing | ||
# pnpm --filter tswebextension-mv3 test | ||
# TODO add artifacts for testing | ||
# 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
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.