Merge pull request #70 from Informatik-Projekt-Kurs/IPK-260-Company-B… #334
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: | |
- "*" | |
push: | |
branches: | |
- "*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm install | |
- name: Create env file | |
run: | | |
touch .env | |
echo JWT_SECRET="mysecretvalue" >> .env | |
echo JWT_EXPIRATION_MS=60000 >> .env | |
echo JWT_REFRESH_EXPIRATION_MS=1209600000 >> .env | |
echo REFRESH_DOMAIN="/refresh" >> .env | |
echo FRONTEND_DOMAIN="https://meetmate.dev" >> .env | |
echo BACKEND_DOMAIN="https://meetmate.bencodes.de" >> .env | |
echo GRAPHQL_URL="http://localhost:8080/graphql" >> .env | |
echo NEXT_PUBLIC_SYNCFUSION_LICENSE="mysecretvalue" >> .env | |
cat .env | |
- name: Build project | |
run: npm run build | |
- name: Lint project | |
run: npm run lint |