-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: Fix getInviteUri default scopes (#45)
- Loading branch information
Showing
9 changed files
with
175 additions
and
159 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
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 |
---|---|---|
@@ -0,0 +1,139 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- next | ||
pull_request: | ||
|
||
jobs: | ||
analyze: | ||
name: dart analyze | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Dart Action | ||
uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.pub-cache | ||
key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pubspec- | ||
- name: Install dependencies | ||
run: dart pub get | ||
|
||
- name: Analyze project source | ||
run: dart analyze | ||
|
||
fix: | ||
name: dart fix | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Dart Action | ||
uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.pub-cache | ||
key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pubspec- | ||
- name: Install dependencies | ||
run: dart pub get | ||
|
||
- name: Analyze project source | ||
run: dart fix --dry-run | ||
|
||
format: | ||
name: dart format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Dart Action | ||
uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.pub-cache | ||
key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pubspec- | ||
- name: Install dependencies | ||
run: dart pub get | ||
|
||
- name: Format | ||
run: dart format --set-exit-if-changed -l 160 ./lib | ||
|
||
unit-tests: | ||
needs: [ format, analyze, fix ] | ||
name: Unit tests | ||
runs-on: ubuntu-latest | ||
env: | ||
TEST_TOKEN: ${{ secrets.TEST_TOKEN }} | ||
TEST_TEXT_CHANNEL: ${{ secrets.TEST_TEXT_CHANNEL }} | ||
TEST_GUILD: ${{ secrets.TEST_GUILD }} | ||
steps: | ||
- name: Setup Dart Action | ||
uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.pub-cache | ||
key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pubspec- | ||
- name: Install dependencies | ||
run: dart pub get | ||
|
||
- name: Unit tests | ||
run: dart run test test/unit/** | ||
|
||
integration-tests: | ||
name: Integration tests | ||
needs: [ format, analyze, fix ] | ||
runs-on: ubuntu-latest | ||
env: | ||
TEST_TOKEN: ${{ secrets.TEST_TOKEN }} | ||
TEST_TEXT_CHANNEL: ${{ secrets.TEST_TEXT_CHANNEL }} | ||
TEST_GUILD: ${{ secrets.TEST_GUILD }} | ||
steps: | ||
- name: Setup Dart Action | ||
uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.pub-cache | ||
key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pubspec- | ||
- name: Install dependencies | ||
run: dart pub get | ||
|
||
- name: Integration tests | ||
run: dart run test test/integration/** |
This file was deleted.
Oops, something went wrong.
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,3 +1,8 @@ | ||
## 4.2.1 | ||
__01.11.2024__ | ||
|
||
- bug: Fix getInviteUri default scopes | ||
|
||
## 4.2.0 | ||
__04.10.2024__ | ||
|
||
|
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,40 +1,26 @@ | ||
.PHONY: help | ||
help: | ||
@fgrep -h "##" $(MAKEFILE_LIST) | sed -e 's/\(\:.*\#\#\)/\:\ /' | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | ||
|
||
.PHONY: app-check ## Run basic format checks and then generate code coverage | ||
app-check: format-check generate-coverage | ||
|
||
.PHONY: format-check ## Check basic format | ||
format-check: format analyze | ||
|
||
.PHONY: generate-coverage | ||
generate-coverage: integration-tests unit-tests coverage-format coverage-gen-html ## Run all test and generate html code coverage | ||
format: ## Run dart format | ||
dart format -l 160 . | ||
|
||
.PHONY: integration-tests | ||
integration-tests: ## Run integration tests with coverage | ||
(timeout 20s dart run test --coverage="coverage" --timeout=none test/integration/** ; exit 0) | ||
fix: ## Run dart fix | ||
dart fix --apply | ||
|
||
.PHONY: unit-tests | ||
unit-tests: ## Run unit tests with coverage | ||
(timeout 10s dart run test --coverage="coverage" --timeout=none test/unit/** ; exit 0) | ||
analyze: ## Run dart analyze | ||
dart analyze | ||
|
||
.PHONY: coverage-format | ||
coverage-format: ## Format dart coverage output to lcov | ||
dart run coverage:format_coverage --lcov --in=coverage --out=coverage/coverage.lcov --packages=.packages --report-on=lib | ||
unit-tests: ## Run unit tests | ||
dart run test test/unit/** | ||
|
||
.PHONY: coverage-gen-html | ||
coverage-gen-html: ## Generate html coverage from lcov data | ||
genhtml coverage/coverage.lcov -o coverage/coverage_gen | ||
integration-tests: ## Run integrations tests | ||
ifndef TEST_TOKEN $(error TEST_TOKEN is undefined) endif \ | ||
ifndef TEST_TEXT_CHANNEL $(error TEST_TEXT_CHANNEL is undefined) endif \ | ||
ifndef TEST_GUILD $(error TEST_GUILD is undefined) endif \ | ||
dart run test test/integration/** | ||
|
||
.PHONY: format | ||
format: ## Run dart format | ||
dart format --set-exit-if-changed -l 160 ./lib | ||
fix-project: analyze fix format ## Fix whole project | ||
|
||
.PHONY: format-apply | ||
format-apply: ## Run dart format | ||
dart format --fix -l 160 ./lib | ||
test-project: unit-tests integration-tests ## Run all tests | ||
|
||
.PHONY: analyze | ||
analyze: ## Run dart analyze | ||
dart analyze | ||
check-project: fix-project test-project ## Run all checks |
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,10 +1,4 @@ | ||
include: package:lints/recommended.yaml | ||
|
||
linter: | ||
rules: | ||
implementation_imports: false | ||
|
||
analyzer: | ||
language: | ||
strict-raw-types: true | ||
strict-casts: false | ||
exclude: [build/**] |
Oops, something went wrong.