-
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 pull request #122 from maximtop/test
Test
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Tests build | ||
name: tswebextension-tests | ||
|
||
env: | ||
NODE_VERSION: 20 | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
id: | ||
type: 'string' | ||
required: true | ||
description: 'Unique identifier for the workflow run' | ||
|
||
# FIXME describe this in the README.md, variable names cant be changed | ||
run-name: ${{github.workflow}} [ID:${{ inputs.id }}] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
# Number of commits to fetch. 0 indicates all history. | ||
fetch-depth: 0 | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
cache: pnpm | ||
- name: Run bash commands | ||
shell: bash | ||
run: | | ||
ls -alt | ||
# install deps | ||
pnpm install | ||
# tswebextension | ||
npx lerna run --scope @adguard/tswebextension build --include-dependencies | ||
npx lerna run --scope @adguard/tswebextension lint | ||
npx lerna run --scope @adguard/tswebextension test:prod |
Empty file.
Empty file.