mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
hotfix: CI: disable tarpaulin run until it is fixed
This commit is contained in:
238
.github/workflows/coverage.yml
vendored
238
.github/workflows/coverage.yml
vendored
@@ -1,119 +1,119 @@
|
|||||||
name: Coverage
|
#name: Coverage
|
||||||
|
#
|
||||||
on:
|
#on:
|
||||||
pull_request:
|
# pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
# types: [opened, synchronize, reopened]
|
||||||
push:
|
# push:
|
||||||
branches:
|
# branches:
|
||||||
- master
|
# - master
|
||||||
- db-abstract
|
# - db-abstract
|
||||||
|
#
|
||||||
jobs:
|
#jobs:
|
||||||
build_and_test:
|
# build_and_test:
|
||||||
strategy:
|
# strategy:
|
||||||
fail-fast: false
|
# fail-fast: false
|
||||||
matrix:
|
# matrix:
|
||||||
version:
|
# version:
|
||||||
- stable
|
# - stable
|
||||||
#- 1.51.0
|
# #- 1.51.0
|
||||||
|
#
|
||||||
name: ${{ matrix.version }} - x86_64-unknown-linux-gnu
|
# name: ${{ matrix.version }} - x86_64-unknown-linux-gnu
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
#
|
||||||
services:
|
# services:
|
||||||
postgres:
|
# postgres:
|
||||||
image: postgres
|
# image: postgres
|
||||||
env:
|
# env:
|
||||||
POSTGRES_PASSWORD: password
|
# POSTGRES_PASSWORD: password
|
||||||
POSTGRES_USER: postgres
|
# POSTGRES_USER: postgres
|
||||||
POSTGRES_DB: postgres
|
# POSTGRES_DB: postgres
|
||||||
options: >-
|
# options: >-
|
||||||
--health-cmd pg_isready
|
# --health-cmd pg_isready
|
||||||
--health-interval 10s
|
# --health-interval 10s
|
||||||
--health-timeout 5s
|
# --health-timeout 5s
|
||||||
--health-retries 5
|
# --health-retries 5
|
||||||
ports:
|
# ports:
|
||||||
- 5432:5432
|
# - 5432:5432
|
||||||
|
#
|
||||||
mcaptcha-redis:
|
# mcaptcha-redis:
|
||||||
image: mcaptcha/cache
|
# image: mcaptcha/cache
|
||||||
ports:
|
# ports:
|
||||||
- 6379:6379
|
# - 6379:6379
|
||||||
|
#
|
||||||
mcaptcha-smtp:
|
# mcaptcha-smtp:
|
||||||
image: maildev/maildev
|
# image: maildev/maildev
|
||||||
env:
|
# env:
|
||||||
MAILDEV_WEB_PORT: "1080"
|
# MAILDEV_WEB_PORT: "1080"
|
||||||
MAILDEV_INCOMING_USER: "admin"
|
# MAILDEV_INCOMING_USER: "admin"
|
||||||
MAILDEV_INCOMING_PASS: "password"
|
# MAILDEV_INCOMING_PASS: "password"
|
||||||
ports:
|
# ports:
|
||||||
- 1080:1080
|
# - 1080:1080
|
||||||
- 10025:1025
|
# - 10025:1025
|
||||||
|
#
|
||||||
|
#
|
||||||
maria:
|
# maria:
|
||||||
image: mariadb:10
|
# image: mariadb:10
|
||||||
env:
|
# env:
|
||||||
MARIADB_USER: "maria"
|
# MARIADB_USER: "maria"
|
||||||
MARIADB_PASSWORD: "password"
|
# MARIADB_PASSWORD: "password"
|
||||||
MARIADB_ROOT_PASSWORD: "password"
|
# MARIADB_ROOT_PASSWORD: "password"
|
||||||
MARIADB_DATABASE: "maria"
|
# MARIADB_DATABASE: "maria"
|
||||||
options: >-
|
# options: >-
|
||||||
--health-cmd="mysqladmin ping"
|
# --health-cmd="mysqladmin ping"
|
||||||
--health-interval=10s
|
# --health-interval=10s
|
||||||
--health-timeout=5s
|
# --health-timeout=5s
|
||||||
--health-retries=10
|
# --health-retries=10
|
||||||
ports:
|
# ports:
|
||||||
- 3306:3306
|
# - 3306:3306
|
||||||
|
#
|
||||||
|
#
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
|
#
|
||||||
- name: load env
|
# - name: load env
|
||||||
run: |
|
# run: |
|
||||||
source .env_sample \
|
# source .env_sample \
|
||||||
&& echo "POSTGRES_DATABASE_URL=$POSTGRES_DATABASE_URL" >> $GITHUB_ENV \
|
# && echo "POSTGRES_DATABASE_URL=$POSTGRES_DATABASE_URL" >> $GITHUB_ENV \
|
||||||
&& echo "MARIA_DATABASE_URL=$MARIA_DATABASE_URL" >> $GITHUB_ENV
|
# && echo "MARIA_DATABASE_URL=$MARIA_DATABASE_URL" >> $GITHUB_ENV
|
||||||
|
#
|
||||||
|
#
|
||||||
- uses: actions/setup-node@v2
|
# - uses: actions/setup-node@v2
|
||||||
with:
|
# with:
|
||||||
node-version: "18.0.0"
|
# node-version: "18.0.0"
|
||||||
|
#
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
# - uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
#
|
||||||
- name: Build frontend
|
# - name: Build frontend
|
||||||
run: make frontend
|
# run: make frontend
|
||||||
|
#
|
||||||
- name: Run the frontend tests
|
# - name: Run the frontend tests
|
||||||
run: make test.frontend
|
# run: make test.frontend
|
||||||
|
#
|
||||||
- name: Run migrations
|
# - name: Run migrations
|
||||||
run: make migrate
|
# run: make migrate
|
||||||
env:
|
# env:
|
||||||
POSTGRES_DATABASE_URL: "${{ env.POSTGRES_DATABASE_URL }}"
|
# POSTGRES_DATABASE_URL: "${{ env.POSTGRES_DATABASE_URL }}"
|
||||||
MARIA_DATABASE_URL: "${{ env.MARIA_DATABASE_URL }}"
|
# MARIA_DATABASE_URL: "${{ env.MARIA_DATABASE_URL }}"
|
||||||
|
#
|
||||||
- name: build frontend
|
# - name: build frontend
|
||||||
run: make frontend
|
# run: make frontend
|
||||||
|
#
|
||||||
- name: Generate coverage file
|
# - name: Generate coverage file
|
||||||
if: github.event_name == 'pull_request'
|
# if: github.event_name == 'pull_request'
|
||||||
#if: (github.ref == 'refs/heads/master' || github.event_name == 'pull_request')
|
# #if: (github.ref == 'refs/heads/master' || github.event_name == 'pull_request')
|
||||||
uses: actions-rs/tarpaulin@v0.1
|
# uses: actions-rs/tarpaulin@v0.1
|
||||||
with:
|
# with:
|
||||||
args: "-t 1200"
|
# args: "-t 1200"
|
||||||
env:
|
# env:
|
||||||
POSTGRES_DATABASE_URL: "${{ env.POSTGRES_DATABASE_URL }}"
|
# POSTGRES_DATABASE_URL: "${{ env.POSTGRES_DATABASE_URL }}"
|
||||||
MARIA_DATABASE_URL: "${{ env.MARIA_DATABASE_URL }}"
|
# MARIA_DATABASE_URL: "${{ env.MARIA_DATABASE_URL }}"
|
||||||
# GIT_HASH is dummy value. I guess build.rs is skipped in tarpaulin
|
# # GIT_HASH is dummy value. I guess build.rs is skipped in tarpaulin
|
||||||
# execution so this value is required for preventing meta tests from
|
# # execution so this value is required for preventing meta tests from
|
||||||
# panicking
|
# # panicking
|
||||||
GIT_HASH: 8e77345f1597e40c2e266cb4e6dee74888918a61
|
# GIT_HASH: 8e77345f1597e40c2e266cb4e6dee74888918a61
|
||||||
CACHE_BUSTER_FILE_MAP: '{"map":{"./static/bundle/main.js":"./prod/bundle/main.1417115E59909BE0A01040A45A398ADB09D928DF89CCF038FA44B14850442096.js"},"base_dir":"./prod"}'
|
# CACHE_BUSTER_FILE_MAP: '{"map":{"./static/bundle/main.js":"./prod/bundle/main.1417115E59909BE0A01040A45A398ADB09D928DF89CCF038FA44B14850442096.js"},"base_dir":"./prod"}'
|
||||||
COMPILED_DATE: "2021-07-21"
|
# COMPILED_DATE: "2021-07-21"
|
||||||
|
#
|
||||||
- name: Upload to Codecov
|
# - name: Upload to Codecov
|
||||||
if: github.event_name == 'pull_request'
|
# if: github.event_name == 'pull_request'
|
||||||
uses: codecov/codecov-action@v2
|
# uses: codecov/codecov-action@v2
|
||||||
|
|||||||
Reference in New Issue
Block a user