Update github action #56
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
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 |