Skip to content

Commit

Permalink
refactor: reintroduced CI (#192)
Browse files Browse the repository at this point in the history
* refactor: moved github configuration from packages/alice to root, updated CI config

* fix: fixed path

* fix: fixed permission

* fix: fixed activate command

* fix: updated analyze step config

* fix: updated analyze step config
  • Loading branch information
jhomlala authored Jun 8, 2024
1 parent e24a9b8 commit 928357e
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 36 deletions.
File renamed without changes.
File renamed without changes.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
pull_request:
push:
branches:
- main

jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- name: Install Tools
run: ./.github/workflows/scripts/install-tools.sh
- name: Analyze
uses: invertase/github-action-dart-analyzer@v1
with:
fatal-infos: true
fatal-warnings: true
working-directory: ./packages

format:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- name: Install Tools
run: ./.github/workflows/scripts/install-tools.sh
- name: Check formatting
run: melos format --output none --set-exit-if-changed
4 changes: 4 additions & 0 deletions .github/workflows/scripts/install-tools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

dart pub global activate melos
melos bootstrap
36 changes: 0 additions & 36 deletions packages/alice/.github/workflows/ci.yml

This file was deleted.

0 comments on commit 928357e

Please sign in to comment.