Skip to content

build: add firefox add-on linting #4

build: add firefox add-on linting

build: add firefox add-on linting #4

name: "Pull Request Checks"
on:
pull_request:
jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
steps:
- name: "🛎 Checkout"
uses: actions/checkout@v3
- name: "🔧 Setup"
uses: ./.github/actions/setup.yml
- name: "👕 Lint"
run: yarn lint
build:
name: "Build"
needs: install

Check failure on line 20 in .github/workflows/pull_request_checks.yml

View workflow run for this annotation

GitHub Actions / Pull Request Checks

Invalid workflow file

The workflow is not valid. .github/workflows/pull_request_checks.yml (Line: 20, Col: 12): Job 'build' depends on unknown job 'install'. .github/workflows/pull_request_checks.yml (Line: 39, Col: 12): Job 'test' depends on unknown job 'install'.
runs-on: ubuntu-latest
steps:
- name: "🛎 Checkout"
uses: actions/checkout@v3
- name: "🔧 Setup"
uses: ./.github/actions/setup.yml
- name: "🏗️ Build"
run: yarn build
- name: "🗜️ Zip build"
run: zip -r build.zip .build/
- name: "📤 Upload build"
uses: actions/upload-artifact@v3
with:
name: build
path: build.zip
test:
name: "Test"
needs: install
runs-on: ubuntu-latest
steps:
- name: "🛎 Checkout"
uses: actions/checkout@v3
- name: "🔧 Setup"
uses: ./.github/actions/setup.yml
- name: "🧪 Test"
run: yarn test
##
# needs install/build
##
validate_firefox:
name: "Validate Firefox"
needs: [install, build]
runs-on: ubuntu-latest
steps:
- name: "🛎 Checkout"
uses: actions/checkout@v3
- name: "🔧 Setup"
uses: ./.github/actions/setup.yml
- name: "📥 Download build"
uses: actions/download-artifact@v3
with:
name: build
- name: "🗜️ Unzip build"
run: unzip build.zip
- name: "✅ Validate"
run: yarn validate:firefox