Skip to content

Commit

Permalink
Merge pull request #122 from maximtop/test
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
stanislav-atr committed Apr 12, 2024
2 parents 6e4fa8e + 1ced3f3 commit ef3bf48
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/tswebextension-tests.yml
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 added commit1.txt
Empty file.
Empty file added commit2.txt
Empty file.

0 comments on commit ef3bf48

Please sign in to comment.