fix!: rename project, use automated release, update configs and dependencies #110
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
name: Build TSC | |
strategy: | |
matrix: | |
node: | |
- 16 | |
- 18 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '${{ matrix.node }}' | |
cache: yarn | |
- run: corepack enable | |
- run: yarn install | |
- run: >- | |
tar -czf /tmp/chainlink-plugin-${{ matrix.node }}.js.tar.gz | |
--exclude="./.git" ./ | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: 'chainlink-plugin-${{ matrix.node }}.js.tar.gz' | |
path: '/tmp/chainlink-plugin-${{ matrix.node }}.js.tar.gz' | |
- uses: actions/cache/save@v3 | |
with: | |
path: | | |
~/.cache/Cypress | |
key: cypress-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
build-web: | |
name: Build Webpack | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: 'chainlink-plugin-18.js.tar.gz' | |
path: /tmp | |
- run: corepack enable | |
- run: 'tar -xf /tmp/chainlink-plugin-18.js.tar.gz -C ./' | |
- run: 'yarn build:web' | |
lint: | |
name: lint | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: chainlink-plugin-18.js.tar.gz | |
path: /tmp | |
- run: corepack enable | |
- run: tar -xf /tmp/chainlink-plugin-18.js.tar.gz -C ./ | |
- run: yarn lint | |
unit: | |
name: Unit Tests | |
needs: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- 16 | |
- 18 | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: 'chainlink-plugin-${{ matrix.node }}.js.tar.gz' | |
path: /tmp | |
- run: 'tar -xf /tmp/chainlink-plugin-${{ matrix.node }}.js.tar.gz -C ./' | |
- run: corepack enable | |
- run: 'yarn test:unit' | |
browser-tests: | |
name: Browser Tests | |
needs: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
browser: ['electron', 'chrome', 'firefox'] | |
steps: | |
- uses: browser-actions/setup-firefox@latest | |
if: matrix.browser == 'firefox' | |
- uses: actions/download-artifact@v3 | |
with: | |
name: chainlink-plugin-16.js.tar.gz | |
path: /tmp | |
- run: tar -xf /tmp/chainlink-plugin-16.js.tar.gz -C ./ | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/Cypress | |
key: cypress-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- run: corepack enable | |
- run: yarn add --no-package-lock --no-save --force cypress | |
- name: Cypress run | |
uses: cypress-io/github-action@v5 | |
with: | |
install: false | |
command: 'yarn run test:e2e:${{ matrix.browser }}' | |
cache-key: node-v16-on-${{ matrix.browser }}-hash-${{ hashFiles('yarn.lock') }} | |
black-box: | |
name: Black Box Tests | |
needs: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- 16 | |
- 18 | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: chainlink-plugin-${{ matrix.node }}.js.tar.gz | |
path: /tmp | |
- run: tar -xf /tmp/chainlink-plugin-${{ matrix.node }}.js.tar.gz -C ./ | |
- run: | | |
yarn test:black-box | |
shell: bash |