Files
OHTU-German-learning-website/.github/workflows/github-actions.yml
T
Axel AdlercreutzandGitHub 27f218d9e9 6 setup nextjs (#7)
* yeet django & vite-react

* setup nextjs

* update workflow
2025-01-19 12:14:23 +02:00

34 lines
917 B
YAML

name: Lint, format and test (and deploy)
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- master
jobs:
lint-format-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Start databases
run: docker compose up -d
- name: Cache Node.js modules
uses: actions/cache@v3
with:
path: ./gradesa/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('./gradesa/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Node
uses: actions/setup-node@v4
with:
cache-dependency-path: ./gradesa/package-lock.json
node-version: 22.6
cache: "npm"
- name: Install client dependencies
run: npm install
working-directory: ./gradesa
- name: Run tests
run: echo "All good"