Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change runner to self-hosted #16

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 32 additions & 6 deletions .github/workflows/devops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,35 @@ name: Continuous Integration

on:
push:
branches:
- dev

branches: [ main, master, dev ]
pull_request:
branches: [ main, master, dev ]

jobs:
lint:
runs-on: self-hosted
steps:

# Setup the git environment
- uses: actions/checkout@v3

# Setup the flutter environment.
- uses: subosito/flutter-action@v2
with:
channel: 'stable'

# print flutter version for debugging/documentation
- name: Flutter version
run: flutter --version

# Statically analyze the Dart code for any errors.
- name: Statically analyze flutter code
continue-on-error: true
run: flutter analyze .

build:
# This job will run on ubuntu virtual machine
runs-on: ubuntu-latest
timeout-minutes: 8
runs-on: self-hosted
steps:

# Setup the git environment
Expand All @@ -20,6 +41,7 @@ jobs:
with:
distribution: 'zulu'
java-version: '11'
settings-path: ${{ github.workspace }} # location for the settings.xml file

# Setup the flutter environment.
- uses: subosito/flutter-action@v2
Expand All @@ -37,4 +59,8 @@ jobs:
# Statically analyze the Dart code for any errors.
- name: Statically analyze flutter code
continue-on-error: true
run: flutter analyze .
run: flutter analyze .

# Run the tests
- name: Run tests
run: flutter test --reporter github