Skip to content

Commit

Permalink
Trying to fix Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sunesimonsen committed May 2, 2024
1 parent 13c704e commit 565b0e7
Showing 1 changed file with 19 additions and 23 deletions.
42 changes: 19 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
name: Tests
'on':

on:
push:
pull_request:

env:
BROWSER_STACK_ACCESS_KEY: '${{ secrets.BROWSER_STACK_ACCESS_KEY }}'
BROWSER_STACK_USERNAME: '${{ secrets.BROWSER_STACK_USERNAME }}'
BROWSER_STACK_ACCESS_KEY: "${{ secrets.BROWSER_STACK_ACCESS_KEY }}"
BROWSER_STACK_USERNAME: "${{ secrets.BROWSER_STACK_USERNAME }}"

jobs:
test:
runs-on: ubuntu-18.04
name: Node ${{ matrix.node }}
strategy:
matrix:
node:
- '10'
- '12'
- '14'
node-version: [10, 12, 14, 16, 18, 20]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v1
with:
Expand All @@ -27,27 +24,26 @@ jobs:
- run: npm test

test-targets:
runs-on: ubuntu-18.04
name: ${{ matrix.targets.name }}
strategy:
matrix:
targets:
- name: 'Lint'
target: 'lint'
- name: 'Documentation'
target: 'test-docs'
- name: 'Jest'
target: 'test-jest'
- name: 'Browser - IE11'
target: 'test-browser-ie11'
- name: 'Chrome Headless'
target: 'test-headless'
- name: "Lint"
target: "lint"
- name: "Documentation"
target: "test-docs"
- name: "Jest"
target: "test-jest"
- name: "Browser - IE11"
target: "test-browser-ie11"
- name: "Chrome Headless"
target: "test-headless"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: '12'
node-version: "12"
- run: npm install
- run: npm run ${{ matrix.targets.target }}

0 comments on commit 565b0e7

Please sign in to comment.