Skip to content

Commit

Permalink
adding github sponsor link (#41)
Browse files Browse the repository at this point in the history
* adding github sponsor link

* docker-compose refactored

* update config files
  • Loading branch information
isaozler authored Oct 23, 2024
1 parent daa4a9a commit 566c287
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: isaozler
27 changes: 18 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
Expand All @@ -31,14 +31,23 @@ jobs:
- name: Build frontend
run: npm run build

- name: Start grafana docker
run: docker-compose up -d
- name: Start Grafana Docker container
run: |
docker network create grafana-network || true
docker run -d \
--name=grafana \
--network=grafana-network \
-p 3000:3000 \
grafana/grafana
- name: Run e2e tests
run: npm run e2e

- name: Stop grafana docker
run: docker-compose down
- name: Stop and remove Grafana Docker container
run: |
docker stop grafana
docker rm grafana
docker network rm grafana-network
- name: Check for backend
id: check-for-backend
Expand All @@ -50,20 +59,20 @@ jobs:
- name: Setup Go environment
if: steps.check-for-backend.outputs.has-backend == 'true'
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.19'

- name: Test backend
if: steps.check-for-backend.outputs.has-backend == 'true'
uses: magefile/mage-action@v2
uses: magefile/mage-action@v3
with:
version: latest
args: coverage

- name: Build backend
if: steps.check-for-backend.outputs.has-backend == 'true'
uses: magefile/mage-action@v2
uses: magefile/mage-action@v3
with:
version: latest
args: buildAll
6 changes: 3 additions & 3 deletions .github/workflows/is-compatible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ jobs:
compatibilitycheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
Expand Down

0 comments on commit 566c287

Please sign in to comment.