mirror of
https://github.com/XFox111/PasswordGeneratorExtension.git
synced 2026-04-22 08:08:01 +03:00
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
name: PR check pipeline
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ "main", "next" ]
|
|
paths-ignore:
|
|
- '**.md'
|
|
- 'LICENSE'
|
|
- 'PRIVACY'
|
|
- '**/cd_pipeline.yaml'
|
|
- '**/dependabot.yml'
|
|
- '**/codeql-analysis.yml'
|
|
- '.vscode/*'
|
|
- '.devcontainer/*'
|
|
workflow_dispatch:
|
|
inputs:
|
|
targets:
|
|
description: Targets
|
|
required: true
|
|
default: '["chrome","firefox"]'
|
|
type: choice
|
|
options:
|
|
- '["chrome","firefox"]'
|
|
- '["chrome"]'
|
|
- '["firefox"]'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container: node:20
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target: ${{ fromJSON(github.event.inputs.targets || '["chrome","firefox"]') }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
|
|
- run: yarn install
|
|
- run: yarn lint
|
|
- run: TARGET=${{ matrix.target }} yarn build
|
|
|
|
- name: Drop artifacts (${{ matrix.target }})
|
|
uses: actions/upload-artifact@main
|
|
with:
|
|
name: ${{ matrix.target }}
|
|
path: dist
|
|
|
|
- name: "web-ext lint"
|
|
if: ${{ matrix.target == 'firefox' }}
|
|
uses: kewisch/action-web-ext@cb8a69420fea686e331e270b6581d4d289ecb2d2
|
|
with:
|
|
cmd: lint
|
|
source: dist
|
|
channel: listed
|