Skip to content

Commit

Permalink
try new workflow config
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsten König committed Jul 23, 2024
1 parent a04560e commit 6313933
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
pull: true
file: docker/Dockerfile_ci
tags: ghcr.io/cars10/elasticvue_ci:latest

- name: run tests
run: make CI=1 ci
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
CI ?=
CI_IMAGE=ghcr.io/cars10/elasticvue_ci:latest

build_docker_ci:
docker build -f docker/Dockerfile_ci -t elasticvue-ci .
docker build -f docker/Dockerfile_ci -t ${CI_IMAGE} .

ci: build_docker_ci
cat /proc/cpuinfo
docker run --rm elasticvue-ci yarn lint
docker run --rm elasticvue-ci yarn tsc
docker run --rm elasticvue-ci yarn test:unit
docker run --rm -e CI="$(CI)" -v ./playwright-report-ci:/app/playwright-report elasticvue-ci yarn test:e2e:all
docker run --rm ${CI_IMAGE} yarn lint
docker run --rm ${CI_IMAGE} yarn tsc
docker run --rm ${CI_IMAGE} yarn test:unit
docker run --rm -e CI="$(CI)" -v ./playwright-report-ci:/app/playwright-report ${CI_IMAGE} yarn test:e2e:all

build_tauri:
yarn tauri:build
Expand Down
1 change: 0 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default defineConfig({
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 2 : 16,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: [['html', { open: 'never' }]],
Expand Down

0 comments on commit 6313933

Please sign in to comment.