1
0
mirror of https://github.com/XFox111/PasswordGeneratorExtension.git synced 2026-04-22 08:08:01 +03:00
Files
PasswordGeneratorExtension/.github/workflows/pr_pipeline.yaml
T
2023-11-12 15:59:07 +03:00

52 lines
1.2 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: string
jobs:
build:
runs-on: ubuntu-latest
container: node:20
strategy:
fail-fast: false
matrix:
target: ${{ fromJSON(format('[%s]', 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