Skip to content

Update github action #56

Update github action

Update github action #56

name: web-extension-svelte-boilerplate ci/cd
on:
push:
jobs:
installation:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/install-deps
- name: Installing packages...🏃‍♂️ 🏃‍♂️ 🏃‍♂️
run: pnpm install --no-frozen-lockfile
linter:
runs-on: ubuntu-20.04
needs: [installation]
concurrency: validation-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/install-deps
- name: Installing packages...🏃‍♂️ 🏃‍♂️ 🏃‍♂️
run: pnpm install --no-frozen-lockfile
- name: Running typecheck... 🩺 🔬 🔭
run: pnpm code:typecheck
- name: Running eslint... 👀
run: pnpm code:lint
test:
runs-on: ubuntu-20.04
needs: [installation]
concurrency: validation-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/install-deps
- name: Installing packages...🏃‍♂️ 🏃‍♂️ 🏃‍♂️
run: pnpm install --no-frozen-lockfile
- name: Running unit test... 🤞 🚑 💊
run: pnpm test:unit --runInBand --coverage
build:
runs-on: ubuntu-20.04
needs: [installation, linter, test]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/install-deps
- name: Installing packages...🏃‍♂️ 🏃‍♂️ 🏃‍♂️
run: pnpm install --no-frozen-lockfile
- name: Run build Chrome
run: pnpm app:chrome
- name: Run build Firefox
run: pnpm app:firefox