Skip to content

Commit

Permalink
Add CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Dec 30, 2023
1 parent 77d55c3 commit 5fab250
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/live-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install
- run: npm install web-ext
- run: npm run upload
env:
CID: ${{ secrets.CLIENT_ID }}
CS: ${{ secrets.CLIENT_SECRET }}
RT: ${{ secrets.REFRESH_TOKEN }}
4 changes: 2 additions & 2 deletions test/live-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const myZipFile = fs.createReadStream('./web-ext-artifacts/live-test.zip');

const store = chromeWebstoreUpload({
extensionId: 'nphhdjlnhlicpjcpanamejkfehegdclg',
clientId: process.env.ID,
clientSecret: process.env.S,
clientId: process.env.CID,
clientSecret: process.env.CS,
refreshToken: process.env.RT,
});

Expand Down

0 comments on commit 5fab250

Please sign in to comment.