Skip to content

Commit

Permalink
ci(github): add ci (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil authored Nov 28, 2023
1 parent 47c480f commit eeb4632
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#

name: CI

on:
push:
pull_request:
workflow_dispatch:

jobs:
front:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
cache: 'npm'
node-version-file: package.json
- run: npm ci
working-directory: ./front
- run: npm run build
working-directory: ./front

back:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
cache: 'npm'
node-version-file: package.json
- run: npm ci
working-directory: ./back
- run: npm run build
working-directory: ./back
- run: npm run test
working-directory: ./back
3 changes: 2 additions & 1 deletion front/src/providers/connectedSpaces/EspaceConnected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import { ProviderValidation } from '../details/ProviderValidation';
import { OidcClientFormContext } from '../details/oidc-client-form.context';

export const EspaceConnected = () => {
const { oidcClientForm: {clientName} } = useContext(OidcClientFormContext);
const { oidcClientForm } = useContext(OidcClientFormContext);
const { clientName } = oidcClientForm;
return (
<>
<div className="fr-container">
Expand Down
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"engines": {
"node": "20.10.0",
"npm": ">=9",
"pnpm": ">=8"
},
"private": true
}

0 comments on commit eeb4632

Please sign in to comment.