mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-22 08:16:28 +00:00
test
This commit is contained in:
parent
7b202962e8
commit
0ab39023b0
61
.github/workflows/test.yaml
vendored
61
.github/workflows/test.yaml
vendored
@ -7,27 +7,8 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v1
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v1
|
|
||||||
with:
|
|
||||||
install: true
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v2
|
|
||||||
with:
|
|
||||||
tags: cupcakearmy/cryptgeon:test
|
|
||||||
push: false
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# services:
|
|
||||||
# redis:
|
|
||||||
# image: redis:7-alpine
|
|
||||||
# ports:
|
|
||||||
# - 6379:6379
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
@ -36,15 +17,20 @@ jobs:
|
|||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
version: 7
|
version: 7
|
||||||
# - uses: actions-rs/toolchain@v1
|
|
||||||
# with:
|
- uses: docker/setup-qemu-action@v1
|
||||||
# toolchain: 1.64
|
- uses: docker/setup-buildx-action@v1
|
||||||
|
with:
|
||||||
|
install: true
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
pnpm run test:docker
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: |
|
run: |
|
||||||
pnpm install
|
pnpm install playwright
|
||||||
pnpm run test:docker
|
pnpm exec playwright install --with-deps
|
||||||
- name: Install Playwright
|
|
||||||
run: npx playwright install --with-deps
|
|
||||||
- name: Run your tests
|
- name: Run your tests
|
||||||
run: pnpm run test:run
|
run: pnpm run test:run
|
||||||
- name: Upload test results
|
- name: Upload test results
|
||||||
@ -52,3 +38,26 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: test-results
|
name: test-results
|
||||||
path: test-results
|
path: test-results
|
||||||
|
# test:
|
||||||
|
# runs-on: ubuntu-latest
|
||||||
|
# steps:
|
||||||
|
# - uses: actions/checkout@v2
|
||||||
|
# - uses: actions/setup-node@v2
|
||||||
|
# with:
|
||||||
|
# node-version: "16"
|
||||||
|
# - uses: pnpm/action-setup@v2
|
||||||
|
# with:
|
||||||
|
# version: 7
|
||||||
|
# - name: Prepare
|
||||||
|
# run: |
|
||||||
|
# pnpm install
|
||||||
|
# pnpm run test:docker
|
||||||
|
# - name: Install Playwright
|
||||||
|
# run: npx playwright install --with-deps
|
||||||
|
# - name: Run your tests
|
||||||
|
# run: pnpm run test:run
|
||||||
|
# - name: Upload test results
|
||||||
|
# uses: actions/upload-artifact@v2
|
||||||
|
# with:
|
||||||
|
# name: test-results
|
||||||
|
# path: test-results
|
||||||
|
@ -10,6 +10,7 @@ services:
|
|||||||
- 6379:6379
|
- 6379:6379
|
||||||
|
|
||||||
app:
|
app:
|
||||||
|
image: cupcakearmy/cryptgeon:test
|
||||||
build: .
|
build: .
|
||||||
env_file: .dev.env
|
env_file: .dev.env
|
||||||
depends_on:
|
depends_on:
|
||||||
|
Loading…
Reference in New Issue
Block a user