Skip to content

Commit

Permalink
Fixing setup firefox and run GH_ACTIONS on FF.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfahlander committed Jun 18, 2023
1 parent 838da0a commit ffb7a48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@ name: Build and Test

on: push

env:
GH_ACTIONS: true

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
TF: [test]
services:
firefox: "113.0"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Setup firefox
uses: browser-actions/setup-firefox@v1
run: firefox --version
- name: Install dependencies
run: |
curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7
Expand Down
2 changes: 1 addition & 1 deletion test/karma.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const karmaCommon = {
customLaunchers: require('./karma.browserstack.js').customLaunchers
};

const browserSuiteToUse = process.env.NODE_ENV === 'release' ?
const browserSuiteToUse = process.env.GH_ACTIONS ? 'ciLocal' : process.env.NODE_ENV === 'release' ?
"pre_npm_publish" :
process.env.TRAVIS ?
isNaN(process.env.TRAVIS_PULL_REQUEST) && process.env.BROWSER_STACK_USERNAME ?
Expand Down

0 comments on commit ffb7a48

Please sign in to comment.