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

run CI on every change #257

Merged
merged 2 commits into from
Feb 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 1 addition & 21 deletions .github/workflows/realm-dart-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,9 @@ on:
push:
branches:
- master
paths-ignore:
- 'flutter/**'
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-dart-linux.yml' # except this one
tags:
- '[0-9]+.[0-9]+.[0-9]+**' # matches tags like number(s).number(s).number(s)(any) for ex: 1.0.0 and also 1.0.0+beta

pull_request:
paths-ignore:
- 'flutter/**'
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-dart-linux.yml' # except this one

jobs:
CI:
Expand Down Expand Up @@ -56,9 +45,6 @@ jobs:
dart run realm_dart archive --source-dir $(pwd)/binary/linux --output-file $ARCHIVE_PATH

- name: Release artifacts
# env:
# EVENT_CONTEXT: ${{ toJSON(github.event) }}
# EVENT_CONTEXT: ${{ toJSON(github) }}
if: ${{ success() && github.event_name == 'push' && github.ref_type == 'tag' }}
uses: ncipollo/release-action@v1
with:
Expand All @@ -71,10 +57,4 @@ jobs:
artifacts: ${{ env.ARCHIVE_PATH }}
body: "ADD RELEASE NOTES"
omitBodyDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}
# run: |
# echo "Creating a release for tag ${{ github.ref_name }}"
# # echo $EVENT_CONTEXT
# # echo "github.event_name ${{ github.event_name }}"
# # echo "github.ref_type ${{ github.ref_type }}"
# # echo "github.ref_name ${{ github.ref_name }}"
token: ${{ secrets.GITHUB_TOKEN }}
13 changes: 1 addition & 12 deletions .github/workflows/realm-dart-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,9 @@ on:
push:
branches:
- master
paths-ignore:
- 'flutter/**'
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-dart-macos.yml' # except this one
tags:
- '[0-9]+.[0-9]+.[0-9]+**' # matches tags like number(s).number(s).number(s)(any) for ex: 1.0.0 and also 1.0.0+beta

pull_request:
paths-ignore:
- 'flutter/**'
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-dart-macos.yml' # except this one

jobs:
CI:
Expand All @@ -41,7 +30,7 @@ jobs:
- name : Setup Dart SDK
uses: dart-lang/setup-dart@main
with:
sdk: beta
sdk: stable

- name: Install dependencies
run: dart pub get
Expand Down
24 changes: 1 addition & 23 deletions .github/workflows/realm-dart-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,9 @@ on:
push:
branches:
- master
paths-ignore:
- 'flutter/**'
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-dart-windows.yml' # except this one
tags:
- '[0-9]+.[0-9]+.[0-9]+**' # matches tags like number(s).number(s).number(s)(any) for ex: 1.0.0 and also 1.0.0+beta

pull_request:
paths-ignore:
- 'flutter/**'
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-dart-windows.yml' # except this one

jobs:
CI:
Expand All @@ -26,17 +15,6 @@ jobs:
REALM_CI: true

steps:
# - name: SET VARS
# run: |
# echo "ARCHIVE_PATH=$(pwd)\\binary\\windows.tar.gz" >> $env:GITHUB_ENV
# echo "ARCHIVE_SOURCE_PATH=$(pwd)\\binary" >> $env:GITHUB_ENV
# - name: PRINT VARS
# run: |
# echo $ARCHIVE_PATH
# echo $ARCHIVE_SOURCE_PATH
# echo ${{ env.ARCHIVE_PATH }}
# echo ${{ env.ARCHIVE_SOURCE_PATH }}

- name: Checkout
uses: actions/checkout@v2
with:
Expand All @@ -52,7 +30,7 @@ jobs:
- name : Setup Dart SDK
uses: dart-lang/setup-dart@main
with:
sdk: beta
sdk: stable

- name: Install dependencies
run: dart pub get
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/realm-flutter-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,9 @@ on:
push:
branches:
- master
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-android.yml' # except this one
tags:
- '[0-9]+.[0-9]+.[0-9]+**' # matches tags like number(s).number(s).number(s)(any) for ex: 1.0.0 and also 1.0.0+beta

pull_request:
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-android.yml' # except this one

jobs:
CI:
Expand Down Expand Up @@ -44,7 +35,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'beta'
channel: 'stable'

- name: Install dependencies
run: flutter pub get
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/realm-flutter-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,9 @@ on:
push:
branches:
- master
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-ios.yml' # except this one
tags:
- '[0-9]+.[0-9]+.[0-9]+**' # matches tags like number(s).number(s).number(s)(any) for ex: 1.0.0 and also 1.0.0+beta

pull_request:
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-ios.yml' # except this one

jobs:
CI:
Expand Down Expand Up @@ -56,7 +47,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'beta'
channel: 'stable'

- name: Install dependencies
run: flutter pub get
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/realm-flutter-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,9 @@ on:
push:
branches:
- master
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-macos.yml' # except this one
tags:
- '[0-9]+.[0-9]+.[0-9]+**' # matches tags like number(s).number(s).number(s)(any) for ex: 1.0.0 and also 1.0.0+beta

pull_request:
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-macos.yml' # except this one

jobs:
CI:
Expand All @@ -35,7 +26,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'beta'
channel: 'stable'

- name: Enable Flutter Desktop support
run: flutter config --enable-macos-desktop
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/realm-flutter-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,9 @@ on:
push:
branches:
- master
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-windows.yml' # except this one
tags:
- '[0-9]+.[0-9]+.[0-9]+**' # matches tags like number(s).number(s).number(s)(any) for ex: 1.0.0 and also 1.0.0+beta

pull_request:
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-windows.yml' # except this one

jobs:
CI:
Expand All @@ -35,7 +26,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'beta'
channel: 'stable'

- name: Enable Flutter Desktop support
run: flutter config --enable-windows-desktop
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/realm-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@ on:
push:
branches:
- master
paths:
- 'generator/**'
- .github/workflows/realm-generator.yml

pull_request:
paths:
- 'generator/**'
- .github/workflows/realm-generator.yml

jobs:
CI:
Expand Down