-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9725eca
commit f204003
Showing
25 changed files
with
5,727 additions
and
3,456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,77 +9,77 @@ | |
name: grammY conversations | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
backport: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: npm install --ignore-scripts | ||
|
||
- name: Run backporting | ||
run: npm run backport | ||
|
||
format-and-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v3 | ||
|
||
- uses: denoland/setup-deno@main | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: Check Format | ||
run: deno fmt --check | ||
|
||
- name: Lint | ||
run: deno lint | ||
|
||
test: | ||
runs-on: ${{ matrix.os }} # runs a test on Ubuntu, Windows and macOS | ||
|
||
strategy: | ||
matrix: | ||
os: [macOS-latest, windows-latest, ubuntu-latest] | ||
|
||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v3 | ||
|
||
- uses: denoland/setup-deno@main | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: Cache Dependencies | ||
run: deno cache src/mod.ts | ||
|
||
- name: Run Tests | ||
run: deno task test | ||
|
||
coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: denoland/setup-deno@main | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: Create coverage files | ||
run: deno task coverage | ||
|
||
- name: Collect coverage | ||
uses: codecov/[email protected] # upload the report on Codecov | ||
with: | ||
file: ./coverage.lcov | ||
backport: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: npm install --ignore-scripts | ||
|
||
- name: Run backporting | ||
run: npm run backport | ||
|
||
format-and-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v4 | ||
|
||
- uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x | ||
|
||
- name: Check Format | ||
run: deno fmt --check | ||
|
||
- name: Lint | ||
run: deno lint | ||
|
||
test: | ||
runs-on: ${{ matrix.os }} # runs a test on Ubuntu, Windows and macOS | ||
|
||
strategy: | ||
matrix: | ||
os: [macOS-latest, windows-latest, ubuntu-latest] | ||
|
||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v4 | ||
|
||
- uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x | ||
|
||
- name: Cache Dependencies | ||
run: deno task check | ||
|
||
- name: Run Tests | ||
run: deno task test | ||
|
||
coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x | ||
|
||
- name: Create coverage files | ||
run: deno task coverage | ||
|
||
- name: Collect coverage | ||
uses: codecov/[email protected] # upload the report on Codecov | ||
with: | ||
file: ./coverage.lcov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,22 @@ | ||
{ | ||
"lock": false, | ||
"tasks": { | ||
"check": "deno cache --check=all src/mod.ts", | ||
"backport": "deno run --no-prompt --allow-read=. --allow-write=. https://deno.land/x/[email protected]/src/cli.ts tsconfig.json", | ||
"test": "deno test test", | ||
"dev": "deno fmt && deno lint && deno task test && deno task check", | ||
"check": "deno cache --allow-import --check=all src/mod.ts", | ||
"build": "deno run --no-prompt --allow-read=. --allow-write=. https://deno.land/x/[email protected]/src/cli.ts tsconfig.json", | ||
"test": "deno test --allow-import test", | ||
"ok": "deno fmt && deno lint && deno task test && deno task check", | ||
"clean": "git clean -fX out test/cov_profile test/coverage coverage.lcov", | ||
"coverage": "deno task clean && deno task test --coverage=./test/cov_profile && deno coverage --lcov --output=./coverage.lcov ./test/cov_profile", | ||
"report": "genhtml ./coverage.lcov --output-directory ./test/coverage/ && echo 'Point your browser to test/coverage/index.html to see the test coverage report.'" | ||
}, | ||
"exclude": [ | ||
"./node_modules/", | ||
"./out/", | ||
"./package-lock.json", | ||
"./test/cov_profile" | ||
], | ||
"fmt": { | ||
"indentWidth": 4, | ||
"proseWrap": "preserve", | ||
"exclude": [ | ||
"./node_modules/", | ||
"./out/", | ||
"./package-lock.json", | ||
"./test/cov_profile" | ||
] | ||
}, | ||
"lint": { | ||
"exclude": [ | ||
"./node_modules/", | ||
"./out/", | ||
"./package-lock.json" | ||
] | ||
"proseWrap": "preserve" | ||
} | ||
} |
Oops, something went wrong.