Skip to content

Commit

Permalink
Feat: 🚀🔒🔍 Enhanced Testing Infrastructure & Security Features
Browse files Browse the repository at this point in the history
  • Loading branch information
samjcombs authored Nov 14, 2024
1 parent eccd5fb commit 24357db
Show file tree
Hide file tree
Showing 54 changed files with 11,642 additions and 3,123 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: CI

on:
push:
branches: [ env ]
branches-ignore: [main]
pull_request:
branches: [ env ]

branches-ignore: [main]
jobs:
e2e-tests:
runs-on: ubuntu-latest
env:
TEST_PORT: 3033
PLAY_PORT: 3034
RECORD_PORT: 3035
NODE_ENV: test
Expand All @@ -32,8 +31,13 @@ jobs:
echo "RECORD_PORT=${{ env.RECORD_PORT }}" >> .env
echo "NODE_ENV=${{ env.NODE_ENV }}" >> .env
- name: Setup Docker
uses: docker/setup-buildx-action@v3
# Install Docker using a separate script to avoid dependency conflicts
- name: Install Docker
run: |
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
sudo usermod -aG docker $USER
shell: bash

- name: Run e2e tests
run: npm run e2e:test
Expand All @@ -45,4 +49,4 @@ jobs:
name: e2e-test-results
path: |
cypress/videos/
cypress/screenshots/
cypress/screenshots/
114 changes: 5 additions & 109 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,142 +2,38 @@ frontend/build
deployToGCP.sh
certs
backend/data
backend/dist
backend/instant-mock.db
backend/src/migrations/**/*.snapshot*
minikube*

# AUTOGENERATED BELOW THIS LINE
cypress/videos
cypress/screenshot

.DS_Store

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
**/.env
**/.env.development.local
**/.env.test.local
**/.env.production.local
**/.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

seeds.db
.pgpass
7 changes: 3 additions & 4 deletions backend/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
const unusedImports = require('eslint-plugin-unused-imports');

module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
ignorePatterns: ['**/*.test.ts', 'dist/**'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
Expand All @@ -19,8 +18,8 @@ module.exports = {
rules: {
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': 'off', // Disabled to use the 'unused-imports' version.
'@typescript-eslint/explicit-module-boundary-types': 'warn',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'no-only-tests/no-only-tests': 'error',
'@typescript-eslint/no-empty-interface': [
Expand Down
8 changes: 3 additions & 5 deletions backend/codegen.apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ const config: CodegenConfig = {
'./src/graphql/apollo/types/': {
preset: 'client',
},
'./src/graphql/apollo-platform-api.graphql': {
plugins: ['schema-ast'],
},
},
// config: {
// namingConvention: {
// enumValues: './codegen.enum-naming.ts',
// },
// },
};
export default config;
14 changes: 0 additions & 14 deletions backend/codegen.enum-naming.ts

This file was deleted.

Loading

0 comments on commit 24357db

Please sign in to comment.