Task: Add github workflow for tests and publish
This commit is contained in:
parent
7ec5118598
commit
90226fe52b
19
.github/workflows/dart-publish.yml
vendored
Normal file
19
.github/workflows/dart-publish.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
name: Publish to Pub.dev
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
|
||||
jobs:
|
||||
publishing:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: '>>> Checkout'
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: '>>> Publish Dart Package'
|
||||
uses: k-paxian/dart-package-publisher@release
|
||||
with:
|
||||
accessToken: ${{ secrets.PUB_DEV_OAUTH_ACCESS_TOKEN }}
|
||||
refreshToken: ${{ secrets.PUB_DEV_OAUTH_REFRESH_TOKEN }}
|
24
.github/workflows/dart.yml
vendored
Normal file
24
.github/workflows/dart.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
name: Dart
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
|
||||
|
||||
- name: Install dependencies
|
||||
run: dart pub get
|
||||
|
||||
- name: Analyze project source
|
||||
run: dart analyze
|
||||
|
||||
- name: Run tests
|
||||
run: dart test
|
Loading…
Reference in New Issue
Block a user