Skip to content

Merge pull request #207 from polywrap/release/prod #469

Merge pull request #207 from polywrap/release/prod

Merge pull request #207 from polywrap/release/prod #469

Workflow file for this run

name: ci
on:
push:
branches:
- dev
- release/dev
- release/prod
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Read .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvm
- name: Setup Node.js
uses: actions/setup-node@master
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: yarn
# TODO: change "PROD_" back to "DEV_" once that exists again
- name: Build
run: yarn build
env:
CICD: true
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.PROD_NEXT_PUBLIC_SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.PROD_NEXT_PUBLIC_SUPABASE_ANON_KEY }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.PROD_SUPABASE_SERVICE_ROLE_KEY }}
NEXT_PUBLIC_INFURA_PROJECT_ID: ${{ secrets.DEV_NEXT_PUBLIC_INFURA_PROJECT_ID}}
NEXT_PUBLIC_WORKERS_URL: ${{ secrets.DEV_WORKERS_URL }}
- name: Test
run: yarn test