Skip to content

Commit

Permalink
add build and lint workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
LennyPenny committed Apr 21, 2021
1 parent 3e54081 commit fbd562b
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Build"
on:
push:
branches:
- master
pull_request:

jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v1

- name: "web-ext build"
id: web-ext-build
uses: kewisch/action-web-ext@v1
with:
cmd: build
source: src

- name: "Upload Artifact"
uses: actions/upload-artifact@master
with:
name: target.xpi
path: ${{ steps.web-ext-build.outputs.target }}
23 changes: 23 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Lint"
on:
push:
branches:
- master
pull_request:

jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v1

- name: "web-ext lint"
uses: kewisch/action-web-ext@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
cmd: lint
source: src
channel: listed

0 comments on commit fbd562b

Please sign in to comment.