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

feat: replace postgresql with sqlite #82

Merged
merged 4 commits into from
Sep 4, 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
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
POSTGRES_USER=test
POSTGRES_PASSWORD=test
BRIGHT_HOSTNAME=app.brightsec.com
BRIGHT_TOKEN=
12 changes: 2 additions & 10 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 18

Expand All @@ -43,13 +43,5 @@ jobs:
- name: Run unit tests
run: npm run test

- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose

- name: Run e2e tests
run: npm run test:e2e
env:
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
token: ${{ secrets.GPR_TOKEN }}

- name: Set Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 18

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ Thumbs.db

# Config Files
.env

# SQLite DB
test.db
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ Once this template is done, copying over (should be instantaneous), navigate to
BRIGHT_TOKEN = <your_API_key_here>
```

Then you have to build and run services with Docker. Start Docker, and issue the command as follows:

```bash
$ docker compose up -d
```

To initialize DB schema, you should execute a migration, as shown here:

```bash
Expand Down Expand Up @@ -505,8 +499,6 @@ steps:
- name: Run sec tests
run: npm run test:sec
env:
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
BRIGHT_TOKEN: ${{ secrets.BRIGHT_TOKEN }}
BRIGHT_HOSTNAME: app.brightsec.com
```
Expand Down
13 changes: 0 additions & 13 deletions docker-compose.yaml

This file was deleted.

Loading
Loading