Skip to content

Commit

Permalink
chore: ci testing
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadashy committed Dec 22, 2023
1 parent 4012235 commit ae08d8c
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build Extensions

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:

build:
runs-on: ubuntu-22.04
timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: .tool-versions
cache: yarn

- name: Install dependencies
run: yarn install

- name: Generate feed
run: yarn feed-generate

- name: Build Chrome Extension
run: yarn build chrome

- name: Build Firefox Extension
run: yarn build firefox

- name: Build Edge Extension
run: yarn build edge

- name: Build Opera Extension
run: yarn build opera

- name: Build Safari Extension
run: yarn build safari

- name: Archive builds
uses: actions/upload-artifact@v3
with:
name: builds
path: dist
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
# NOTE: UTC time
- cron: 0 0 * * 6
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: .tool-versions
cache: yarn

- name: Install dependencies
run: yarn install

- name: Run type check
run: yarn type-check

- name: Lint
run: yarn lint

0 comments on commit ae08d8c

Please sign in to comment.