Skip to content

Commit

Permalink
Merge pull request #257 from briangann/20240405_patch_for_review
Browse files Browse the repository at this point in the history
Minor patches for review process
  • Loading branch information
jdbranham authored Apr 19, 2024
2 parents ad44a8a + 7c46cc5 commit 9f14362
Show file tree
Hide file tree
Showing 17 changed files with 163,410 additions and 17,111 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,26 @@ 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: '20'
cache: 'npm'
check-latest: true
cache: yarn
cache-dependency-path: yarn.lock

- name: Install dependencies
run: npm ci
run: yarn install --immutable

- name: Check types
run: npm run typecheck
run: yarn typecheck
- name: Lint
run: npm run lint
run: NODE_OPTIONS=--max_old_space_size=4096 yarn lint
- name: Unit tests
run: npm run test:ci
run: yarn test:ci
- name: Build frontend
run: npm run build
run: yarn build

- name: Check for backend
id: check-for-backend
Expand All @@ -43,20 +45,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.21'

- 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
Expand All @@ -82,7 +84,7 @@ jobs:
run: docker-compose down

- name: Archive E2E output
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: steps.check-for-e2e.outputs.has-e2e == 'true' && steps.run-e2e-tests.outcome != 'success'
with:
name: cypress-videos
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/is-compatible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ 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: '20'
cache: 'npm'
check-latest: true
cache: yarn
cache-dependency-path: yarn.lock
- name: Install dependencies
run: npm ci
run: yarn install --immutable
- name: Build plugin
run: npm run build
run: yarn build
- name: Compatibility check
run: npx @grafana/levitate@latest is-compatible --path src/module.ts --target @grafana/data,@grafana/ui,@grafana/runtime
18 changes: 10 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,25 @@ jobs:
# GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }}
GRAFANA_ACCESS_POLICY_TOKEN: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
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: '20'
cache: 'npm'
check-latest: true
cache: yarn
cache-dependency-path: yarn.lock

- name: Setup Go environment
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.21'

- name: Install dependencies
run: npm ci
run: yarn install --immutable

- name: Build and test frontend
run: npm run build
run: yarn build

- name: Check for backend
id: check-for-backend
Expand All @@ -41,14 +43,14 @@ jobs:
- 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
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
20
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 9f14362

Please sign in to comment.