From 7615ab74c697660a1a52668a861d5654b4b389cd Mon Sep 17 00:00:00 2001 From: Kacper Pietrzak Date: Mon, 2 Sep 2024 21:11:45 +0200 Subject: [PATCH] WIP --- .github/workflows/e2e-tests.yml | 18 +++++------------- frontend/package.json | 1 - 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 964abe0..26145e9 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -13,24 +13,16 @@ jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [20.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - steps: - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v4 with: go-version: "1.21.7" - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} + - uses: oven-sh/setup-bun@v2 - run: go mod tidy - run: cd reporters/golang && go mod tidy && cd ../.. - - run: cd reporters/javascript && npm install --no-package-lock && npm run build && cd ../.. - - run: cd frontend && npm install --no-package-lock --legacy-peer-deps && VITE_SERVER_URL=/ npm run build-ci && cd ../.. - - run: cd e2e-tests && npm install --no-package-lock && npx playwright install && cd ../.. - - run: cd e2e-tests && npx playwright test && cd ../.. + - run: cd reporters/javascript && bun install && bun run build && cd ../.. + - run: cd frontend && bun install && cd ../.. + - run: cd e2e-tests && bun install && bunx playwright install && cd ../.. + - run: cd e2e-tests && bun run test && cd ../.. diff --git a/frontend/package.json b/frontend/package.json index d834f4b..695bd42 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -6,7 +6,6 @@ "scripts": { "dev": "bunx --bun vite", "build": "tsc && bunx --bun vite build", - "build-ci": "tsc && vite build", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "bunx --bun vite preview" },