PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
FEATURE (checks): Add linters & formatters checks on each PR
Rostislav Dugin8aae329eb227
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex 00c987fd..c4303a2f 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -6,8 +6,75 @@ on:workflow_dispatch: {}jobs:+ lint-backend:+ runs-on: ubuntu-latest+ steps:+ - name: Check out code+ uses: actions/checkout@v4++ - name: Set up Go+ uses: actions/setup-go@v5+ with:+ go-version: "1.23.3"++ - name: Cache Go modules+ uses: actions/cache@v4+ with:+ path: |+ ~/go/pkg/mod+ ~/.cache/go-build+ key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}+ restore-keys: |+ ${{ runner.os }}-go-++ - name: Install golangci-lint+ run: |+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.60.3+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH++ - name: Run golangci-lint+ run: |+ cd backend+ golangci-lint run++ - name: Verify go mod tidy+ run: |+ cd backend+ go mod tidy+ git diff --exit-code go.mod go.sum || (echo "go mod tidy made changes, please run 'go mod tidy' and commit the changes" && exit 1)++ lint-frontend:+ runs-on: ubuntu-latest+ steps:+ - name: Check out code+ uses: actions/checkout@v4++ - name: Set up Node.js+ uses: actions/setup-node@v4+ with:+ node-version: "20"+ cache: "npm"+ cache-dependency-path: frontend/package-lock.json++ - name: Install dependencies+ run: |+ cd frontend+ npm ci++ - name: Check if prettier was run+ run: |+ cd frontend+ npm run format+ git diff --exit-code || (echo "Prettier made changes, please run 'npm run format' and commit the changes" && exit 1)++ - name: Check if linter was run+ run: |+ cd frontend+ npm run lint+docker:runs-on: ubuntu-latest+ needs: [lint-backend, lint-frontend]steps:- name: Check out codediff --git a/README.md b/README.mdindex de28edd8..26f9720d 100644--- a/README.md+++ b/README.md@@ -154,4 +154,4 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file## 🤝 Contributing-Contributions are welcome! Read [contributing guide](contribute/readme.md) for more details, prioerities and rules are specified there. If you want to contribute, but don't know what and how - message me on Telegram [@rostislavdugin](https://t.me/rostislavdugin)+Contributions are welcome! Read [contributing guide](contribute/readme.md) for more details, prioerities and rules are specified there. If you want to contribute, but don't know what and how - message me on Telegram [@rostislav_dugin](https://t.me/rostislav_dugin)diff --git a/contribute/README.md b/contribute/README.mdindex 752f45a7..4fc054cf 100644--- a/contribute/README.md+++ b/contribute/README.md@@ -65,9 +65,9 @@ Notifications flow:Extra:-- add linters and formatters on each PR (in progress by Rostislav Dugin)+- add versioning instead of :latest (in progress by Rostislav Dugin)+- add tests running on each PR- add prettier labels to GitHub README-- add versioning instead of :latest- create pretty website like rybbit.io with demo- add HTTPS for Postgresus- add simple SQL queries via UI