[pull] development from blockchain:development #1455
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: pull-request | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
env: | |
HUSKY: 0 | |
jobs: | |
pull-request: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- name: Get node version | |
id: node | |
run: | | |
echo "::set-output name=version::$(node -v)" | |
- name: Get node_modules cache | |
uses: actions/cache@v4 | |
id: node_modules | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ steps.node.outputs.version }} | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
# TODO: enable once all lint issues are fixed | |
#- name: Lint code | |
# run: yarn ci:lint | |
- name: Build code | |
run: yarn ci:test:build | |
- name: Test package - components/core | |
run: yarn ci:test:core:components | |
- name: Test package - frontend | |
run: yarn ci:test:frontend |