-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (34 loc) · 1.13 KB
/
ci-test-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test & Build
on:
pull_request:
branches:
- main
jobs:
test:
name: Build & Test > Next Template
timeout-minutes: 60
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
NEXT_PUBLIC_ALCHEMY_API_KEY: ${{ secrets.NEXT_PUBLIC_ALCHEMY_API_KEY }}
NEXT_PUBLIC_INFURA_API_KEY: ${{ secrets.NEXT_PUBLIC_INFURA_API_KEY }}
I18NEXUS_PRE_BUILD: 'true'
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.6.5
- uses: actions/setup-node@v3
with:
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --prefer-offline --frozen-lockfile
env:
I18NEXUS_API_KEY: ${{ secrets.I18NEXUS_API_KEY }}
- name: Build
run: pnpm --filter=mantle-converter --filter=mantle-bridge --filter=mantle-faucet --filter=mantle-token-graph --filter=mantle-token-sync build
- name: Install Playwright
run: pnpx playwright@1.29.2 install chromium --with-deps
- name: Run Playwright tests
run: pnpm run ci:template