Skip to content

Commit

Permalink
Updates to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
nulzo committed Oct 27, 2023
1 parent c5c24dd commit 02cccc2
Show file tree
Hide file tree
Showing 8 changed files with 116 additions and 39 deletions.
File renamed without changes.
26 changes: 26 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build Docker container

on:
# Too expensive to run on ever push. Only run on PR.
pull_request:
branches: [ "main" ]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Build container
uses: actions/checkout@v3
- working-directory: ./backend
run: |
docker compose build
24 changes: 24 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test and lint frontend

on:
push:
branches: ['**']
pull_request:
branches: [ "main" ]

jobs:
run-npm:
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3
- name: set up node
uses: actions/setup-node@v3
with:
node-version: '18.17.1'
- name: npm install
uses: actions/checkout@v3
- working-directory: ./frontend-ts
run: |
npm ci
npx eslint
17 changes: 17 additions & 0 deletions .github/workflows/bandit.yml → .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,20 @@ jobs:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD

pip_audit:
name: Pip Audit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- working-directory:
run: |
python -m pip install --upgrade pip
pip3 install poetry
poetry config virtualenvs.create false
poetry shell
poetry install
- uses: pypa/gh-action-pip-audit@v1.0.8
with:
virtual-environment: .venv
17 changes: 0 additions & 17 deletions .github/workflows/truffle.yml

This file was deleted.

47 changes: 27 additions & 20 deletions frontend-ts/package-lock.json

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

4 changes: 2 additions & 2 deletions frontend-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"preview": "vite preview"
},
"dependencies": {
"@faker-js/faker": "^8.1.0",
"@hookform/resolvers": "^3.3.1",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-alert-dialog": "^1.0.4",
Expand Down Expand Up @@ -74,14 +73,15 @@
"zod": "^3.22.2"
},
"devDependencies": {
"@faker-js/faker": "^8.2.0",
"@types/node": "^20.6.0",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react": "^4.0.3",
"autoprefixer": "^10.4.15",
"eslint": "^8.45.0",
"eslint": "^8.52.0",
"postcss": "^8.4.29",
"tailwindcss": "^3.3.3",
"typescript": "^5.0.2",
Expand Down
20 changes: 20 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,26 @@

## ========================== PROCESSES ===============================

.PHONY frontend-lint:
frontend-lint:
echo s

.PHONY frontend-test:
frontend-test:
echo s

.PHONY backend-lint:
backend-lint:
echo s

.PHONY backend-test:
backend-test:
echo s

.PHONY build-docker:
build-docker:
docker compose up --build

.PHONY build: ## Build the project from scratch
build:
./scripts/build.sh
Expand Down

0 comments on commit 02cccc2

Please sign in to comment.