This repository has been archived by the owner on Dec 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
3 changed files
with
49 additions
and
30 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 |
---|---|---|
|
@@ -4,30 +4,38 @@ on: | |
push: | ||
branches: | ||
- dev | ||
- next | ||
|
||
jobs: | ||
deploy-docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pub_cache | ||
key: ${{ runner.os }} | ||
|
||
- name: Setup Dart Action | ||
uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pub-cache | ||
key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pubspec- | ||
- name: Install dependencies | ||
run: dart pub get | ||
|
||
- name: Generate docs | ||
run: dartdoc | ||
|
||
- name: Extract branch name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: extract_branch | ||
|
||
- name: Deploy nyxx dev docs | ||
uses: easingthemes/[email protected] | ||
env: | ||
|
@@ -36,4 +44,4 @@ jobs: | |
SOURCE: "doc/api/" | ||
REMOTE_HOST: ${{ secrets.DEPLOY_REMOTE_HOST }} | ||
REMOTE_USER: ${{ secrets.DEPLOY_REMOTE_USER }} | ||
TARGET: "${{ secrets.DEPLOY_REMOTE_TARGET }}/dartdocs/nyxx_commander/" | ||
TARGET: "${{ secrets.DEPLOY_REMOTE_TARGET }}/dartdocs/nyxx_commander/${{ steps.extract_branch.outputs.branch }}/" |
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 |
---|---|---|
|
@@ -12,18 +12,19 @@ jobs: | |
env: | ||
TEST_TOKEN: ${{ secrets.TEST_TOKEN }} | ||
steps: | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pub_cache | ||
key: ${{ runner.os }} | ||
|
||
- name: Setup Dart Action | ||
uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pub-cache | ||
key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pubspec- | ||
- name: Install dependencies | ||
run: dart pub get | ||
|
||
|
@@ -36,18 +37,19 @@ jobs: | |
env: | ||
TEST_TOKEN: ${{ secrets.TEST_TOKEN }} | ||
steps: | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pub_cache | ||
key: ${{ runner.os }} | ||
|
||
- name: Setup Dart Action | ||
uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pub-cache | ||
key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pubspec- | ||
- name: Install dependencies | ||
run: dart pub get | ||
|
||
|
@@ -61,12 +63,6 @@ jobs: | |
env: | ||
TEST_TOKEN: ${{ secrets.TEST_TOKEN }} | ||
steps: | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pub_cache | ||
key: ${{ runner.os }} | ||
|
||
- name: Setup Dart Action | ||
uses: dart-lang/setup-dart@v1 | ||
|
||
|
@@ -76,16 +72,20 @@ jobs: | |
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
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 --coverage="coverage" test/unit/** | ||
|
||
- name: Integration tests | ||
run: dart run test --coverage="coverage" test/integration/** | ||
continue-on-error: true | ||
|
||
- name: Format coverage | ||
run: dart run coverage:format_coverage --lcov --in=coverage --out=coverage/coverage.lcov --packages=.packages --report-on=lib | ||
|
||
|