Skip to content

Commit

Permalink
Fixed script.
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-sth committed Dec 10, 2023
1 parent 0bd70c3 commit 4793a3b
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ name: Build and Test

on:
push:
branches:
- main
branches: ['main']
pull_request:
branches:
- main
branches: ['main']

jobs:
test:
runs-on: ubuntu-latest
environment: testing
environment: prod
strategy:
matrix:
node-version: [18]
Expand All @@ -29,11 +27,8 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Set up environment variables for testing
run: echo "ENVIRONMENT=testing" >> $GITHUB_ENV
env:
API_KEY: ${{ secrets.TEST_API_KEY }}
DATABASE_PASSWORD: ${{ secrets.TEST_DATABASE_PASSWORD }}
- name: Set up environment variables
run: echo "MONGODB_URI=${{ secrets.MONGODB_URI }}" >> $GITHUB_ENV

- name: Build
run: npm run build
Expand Down

0 comments on commit 4793a3b

Please sign in to comment.