Skip to content

Bump nanoid from 3.3.7 to 3.3.8 #41

Bump nanoid from 3.3.7 to 3.3.8

Bump nanoid from 3.3.7 to 3.3.8 #41

Workflow file for this run

name: E2E tests
on:
pull_request:
permissions:
contents: read
id-token: write
jobs:
resolve-versions:
name: Resolve Grafana images
runs-on: ubuntu-latest
timeout-minutes: 3
outputs:
matrix: ${{ steps.resolve-versions.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- name: Resolve Grafana E2E versions
id: resolve-versions
uses: grafana/plugin-actions/e2e-version@main
with:
version-resolver-type: plugin-grafana-dependency
skip-grafana-dev-image: true
playwright-tests:
needs: resolve-versions
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
GRAFANA_IMAGE: ${{fromJson(needs.resolve-versions.outputs.matrix)}}
name: e2e ${{ matrix.GRAFANA_IMAGE.name }}@${{ matrix.GRAFANA_IMAGE.VERSION }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version-file: .nvmrc
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.22
- name: Install Mage
uses: magefile/mage-action@v3
with:
install-only: true
- name: Install yarn dependencies
run: yarn install
- name: Build binaries
run: mage -v build:linux
- name: Build frontend
run: yarn build
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Start Grafana
run: |
docker compose pull
GRAFANA_VERSION=${{ matrix.GRAFANA_IMAGE.VERSION }} GRAFANA_IMAGE=${{ matrix.GRAFANA_IMAGE.NAME }} docker compose up -d
- name: Wait for Grafana to start
uses: nev7n/wait_for_response@v1
with:
url: 'http://localhost:3000/'
responseCode: 200
timeout: 60000
interval: 500
- name: Restore Google Analytics Json
id: restore-google-json
run: |
mkdir -p ./tests/credentials
echo '${{ secrets.GOOGLE_AUTH_JSON }}' | base64 --decode > ./tests/credentials/grafana-success.json
echo '${{ secrets.GOOGLE_AUTH_FAIL_JSON }}' | base64 --decode > ./tests/credentials/grafana-fail.json
- name: Run E2E tests
id: run-tests
run: yarn run e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-${{ matrix.GRAFANA_IMAGE.VERSION }}
path: playwright-report/
retention-days: 30