Skip to content

Instantly share code, notes, and snippets.

View MathVasc's full-sized avatar

Matheus de Vasconcelos MathVasc

View GitHub Profile
@MathVasc
MathVasc / launch.json
Created April 19, 2021 17:41
launch with Key args
{
"version": "0.2.0",
"configurations": [
{
"name": "build",
"type": "dart",
"request": "launch",
"program": "lib/main.dart",
"args": [
"--dart-define", "APIKEY=12345678901234567890"
@MathVasc
MathVasc / launch.json
Created March 24, 2021 01:49
launch with script
{
"name": "test",
"type": "dart",
"request": "launch",
"program": "test/",
"args": [
"--coverage",
],
"postDebugTask": "Coverage Report",
}
@MathVasc
MathVasc / tasks.json
Last active March 24, 2021 01:30
tasks
// Tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "Coverage Report",
"command": "genhtml coverage/lcov.info --output=./coverage && open coverage/index.html",
"type": "shell",
},
],
@MathVasc
MathVasc / launch.json
Created March 21, 2021 01:19
launch with coverage
{
"version": "0.2.0",
"configurations": [
{
"name": "test",
"request": "launch",
"type": "dart",
"program": "test/",
"args": [
"--coverage",
@MathVasc
MathVasc / launch.json
Created March 21, 2021 01:12
launch test
{
"version": "0.2.0",
"configurations": [
{
"name": "test",
"request": "launch",
"type": "dart",
"program": "test/",
}
]
@MathVasc
MathVasc / CI.yml
Created October 23, 2020 14:50
upload coverage
# ...
- name: Coverage report
run: slather coverage -x --binary-basename 'iOSGitHubActions'
- name: Post coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./Coverage/cobertura.xml
fail_ci_if_error: true
@MathVasc
MathVasc / CI.yml
Created October 23, 2020 14:43
coverage report
# ...
jobs:
build:
# ...
test:
# ...
- name: Test
run: |
set -o pipefail
@MathVasc
MathVasc / CI.yml
Last active October 23, 2020 14:44
BuildTestCoverage
# ...
jobs:
build:
# ...
- name: Build
run: |
set -o pipefail
slather setup
xcodebuild build-for-testing \
-scheme iOSGitHubActions \
@MathVasc
MathVasc / .slather.yml
Created October 23, 2020 13:54
slather
coverage_service: cobertura_xml
xcodeproj: iOSGitHubActions.xcodeproj
input_format: profdata
output_directory: Coverage/
build_directory: build/Build/
scheme: iOSGitHubActions
ignore:
- iOSGitHubActionsTests/*
@MathVasc
MathVasc / CI.yml
Last active October 23, 2020 14:45
downloadArtifact
# ...
jobs:
build:
# ...
test:
name: Test Project
needs: build
runs-on: macOS-latest
steps: