-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (31 loc) · 1.87 KB
/
ci.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: ci
on: ["push", "pull_request"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "21.0.0"
cache: "yarn"
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Setup environment variables
run: |
echo "NEXT_PUBLIC_FIREBASE_API_KEY=${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_FIREBASE_PROJECT_ID=${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_FIREBASE_APP_ID=${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_API_BASE_URL=${{ secrets.NEXT_PUBLIC_API_BASE_URL }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_BUGSNAG_API_KEY=${{ secrets.NEXT_PUBLIC_BUGSNAG_API_KEY }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_SHOW_LANGUAGE_SELECTOR=${{ secrets.NEXT_PUBLIC_SHOW_LANGUAGE_SELECTOR }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_DISCORD_CLIENT_ID=${{ secrets.NEXT_PUBLIC_DISCORD_CLIENT_ID }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_DISCORD_CALLBACK_URL=${{ secrets.NEXT_PUBLIC_DISCORD_CALLBACK_URL }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_DISCORD_OAUTH_BASE_URL=${{ secrets.NEXT_PUBLIC_DISCORD_OAUTH_BASE_URL }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_DISCORD_SCOPE=${{ secrets.NEXT_PUBLIC_DISCORD_SCOPE }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_GOOGLE_TRANSLATE_API_KEY=${{ secrets.NEXT_PUBLIC_GOOGLE_TRANSLATE_API_KEY }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_BLOCK_EXPLORER_URL=${{ secrets.NEXT_PUBLIC_BLOCK_EXPLORER_URL }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_IPFS_URL=${{ secrets.NEXT_PUBLIC_IPFS_URL }}" >> $GITHUB_ENV
- name: Run tests
run: yarn test