diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a193a8..892a496 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,12 @@ 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: @@ -14,9 +15,9 @@ jobs: strategy: matrix: node: - - '10' - - '12' - - '14' + - "10" + - "12" + - "14" steps: - uses: actions/checkout@v2 - name: Setup node @@ -32,22 +33,22 @@ jobs: 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 - name: Setup node uses: actions/setup-node@v1 with: - node-version: '12' + node-version: "12" - run: npm install - run: npm run ${{ matrix.targets.target }}