Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup backend deployment & CI #11

Merged
merged 9 commits into from
Apr 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v1
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '14'

node-version: 18
- name: Install dependencies
working-directory: ./client
run: npm install

- name: Lint
working-directory: ./client
run: npm run lint
# Make sure you have a lint script in your package.json

- name: Run tests
working-directory: ./client
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v1
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '14'
node-version: 18

- name: Install dependencies
working-directory: ./server
Expand All @@ -36,10 +35,10 @@ jobs:
run: npm test
# This assumes you have a test script in your package.json

- name: Build
working-directory: ./server
run: npm run build
# Builds your application, make sure you have a build script in your package.json
# - name: Build
# working-directory: ./server
# run: npm run build
# # Builds your application, make sure you have a build script in your package.json

# Conditional step for checking code coverage on main branch
- name: Check code coverage
Expand Down
10 changes: 10 additions & 0 deletions client/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";


export default [
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
pluginReactConfig,
];
Loading
Loading