Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Merge pull request #82 from WalletConnect/feat/verify-post #150

Merge pull request #82 from WalletConnect/feat/verify-post

Merge pull request #82 from WalletConnect/feat/verify-post #150

Workflow file for this run

on:
pull_request:
branches:
- main
push:
branches:
- main
name: CI Checks
jobs:
code_checks:
name: Typescript, ESLint, Prettier, Unit Tests
runs-on: ubuntu-latest
timeout-minutes: 5
env:
TEST_RELAY_URL: ${{ secrets.TEST_RELAY_URL }}
TEST_PROJECT_ID: ${{ secrets.TEST_PROJECT_ID }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Get npm cache directory path
id: npm-cache-dir-path
run: echo "::set-output name=dir::$(npm config get cache)"
- name: Check npm cache
uses: actions/cache@v2
id: cache-npm-cache
with:
path: ${{ steps.npm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Check node_modules cache
id: cache-node-modules
uses: actions/cache@v2
env:
TEST_RELAY_URL: ${{ secrets.TEST_RELAY_URL }}
TEST_PROJECT_ID: ${{ secrets.TEST_PROJECT_ID }}
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-nodemodules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-nodemodules-
- name: Install NPM Dependencies
run: npm install
- name: Prettier
run: npm run prettier
- name: ESLint
run: npm run lint
- name: Build
run: npm run build
- name: Unit Tests
run: npm run test