-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔀 Merge branch 'master' of https://github.com/Mastersam07/smarty
- Loading branch information
Showing
5 changed files
with
187 additions
and
144 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 |
---|---|---|
@@ -1,27 +1,27 @@ | ||
# name: CI | ||
name: CI | ||
|
||
# on: | ||
# push: | ||
# branches: [master, dev] | ||
# pull_request: | ||
# branches: [master, dev] | ||
on: | ||
push: | ||
branches: [master, dev] | ||
pull_request: | ||
branches: [master, dev] | ||
|
||
# jobs: | ||
# test: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: subosito/flutter-action@v2 | ||
# with: | ||
# channel: "stable" | ||
# - name: Fetch dependencies | ||
# run: flutter packages get | ||
# # - name: Analyze project | ||
# # run: flutter analyze | ||
# - name: Run tests | ||
# run: flutter test --coverage | ||
# - name: Upload coverage reports to Codecov | ||
# uses: codecov/codecov-action@v3 | ||
# with: | ||
# file: ./coverage/lcov.info | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
- name: Fetch dependencies | ||
run: flutter packages get | ||
# - name: Analyze project | ||
# run: flutter analyze | ||
- name: Run tests | ||
run: flutter test --coverage | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
file: ./coverage/lcov.info | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,117 @@ | ||
# name: Codepush Deployment | ||
|
||
# on: | ||
# create: | ||
# tags: | ||
# - 'v[0-9]+.[0-9]+.[0-9]+([0-9]+)' | ||
# push: | ||
# branches: [master, dev] | ||
# tags: | ||
# - 'v[0-9]+.[0-9]+.[0-9]+([0-9]+)' | ||
|
||
# jobs: | ||
# getversion: | ||
# name: Get Version | ||
# runs-on: ubuntu-latest | ||
# outputs: | ||
# target_version: ${{ steps.setoutput.outputs.target_version }} | ||
|
||
# steps: | ||
|
||
# - name: Get current tag | ||
# id: ctag | ||
# run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} | ||
|
||
# - uses: jungwinter/split@v2 | ||
# id: stag | ||
# with: | ||
# msg: ${{ steps.ctag.outputs.tag }} | ||
# separator: "v" | ||
|
||
# - name: Set Output | ||
# id: setoutput | ||
# env: | ||
# TAG_VER: $(cut -d'+' -f1 <<<"${{steps.splittag.outputs._1}}") | ||
# run: | | ||
# echo "::set-output name=target_version::$TAG_VER" | ||
|
||
# update-android: | ||
# name: Update Android | ||
# needs: getversion | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v2 | ||
|
||
# - name: Setup shorebird | ||
# run: | | ||
# curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash | ||
# echo "${HOME}/shorebird/bin" >> $GITHUB_PATH | ||
|
||
# - name: Setup credentials | ||
# run: | | ||
# if [ ! -d "${HOME}/.config/shorebird" ]; then | ||
# echo "Creating dir..." | ||
# mkdir -p "${HOME}/.config/shorebird" | ||
# fi | ||
# cat <<EOF > ${HOME}/.config/shorebird/credentials.json | ||
# { | ||
# "accessToken": {"type": "Bearer", "data": ${{ secrets.OAUTH_ACCESS_TOKEN }}, "expiry": ${{ secrets.EXPIRATION }} }, | ||
# "refreshToken":"${{ secrets.OAUTH_REFRESH_TOKEN }}", | ||
# "idToken":"${{ secrets.OAUTH_ID_TOKEN }}", | ||
# "scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ], | ||
# } | ||
# EOF | ||
|
||
# # - name: Check if credential exists | ||
# # run: | | ||
# # test -f ${XDG_CONFIG_HOME}/shorebird/credentials.json && echo “FILE exists.” || echo “File does not exist” | ||
|
||
# - name: Check dir | ||
# run: | | ||
# cd ${HOME}/.config/shorebird | ||
# ls -a | ||
|
||
# - name: Shorebird release | ||
# run: shorebird release android | ||
# working-directory: ./example | ||
|
||
# # update-android: | ||
# # name: Update Android | ||
# # needs: getversion | ||
# # runs-on: macos-latest | ||
# # steps: | ||
# # - name: Checkout | ||
# # uses: actions/checkout@v2 | ||
|
||
# # - name: Setup shorebird | ||
# # run: | | ||
# # curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash | ||
# # echo "$HOME/.shorebird/bin" >> $GITHUB_PATH | ||
|
||
# # - name: Setup credentials | ||
# # run: | | ||
# # mkdir -p ~/Library/Application\ Support/shorebird | ||
# # cat <<EOF > ~/Library/Application\ Support/shorebird/credentials.json | ||
# # { | ||
# # "accessToken": {"type": "Bearer", "data": ${{ secrets.OAUTH_ACCESS_TOKEN }}, "expiry": ${{ secrets.EXPIRATION }} }, | ||
# # "refreshToken":"${{ secrets.OAUTH_REFRESH_TOKEN }}", | ||
# # "idToken":"${{ secrets.OAUTH_ID_TOKEN }}", | ||
# # "scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ], | ||
# # } | ||
# # EOF | ||
|
||
# # - name: Check dir | ||
# # run: | | ||
# # cd ~/Library/Application\ Support/shorebird | ||
# # ls -a | ||
|
||
# # - name: Shorebird release | ||
# # run: shorebird release android | ||
# # working-directory: ./example | ||
|
||
# # # - name: Shorebird patch | ||
# # # run: shorebird patch android --release-version ${{needs.getversion.outputs.target_version}} | ||
# # # working-directory: ./example | ||
# # - name: Git Diff | ||
# # run: git diff --exit-code |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# name: Nightly Build | ||
|
||
# on: | ||
# schedule: | ||
# # - cron: '0 1 * * *' # Run every day at 1 AM UTC | ||
# # - cron: '*/5 1-23 * * *' # Run every 5 minutes from 1 AM to 11 PM UTC | ||
# - cron: '20-55/5 1-23 * * *' # Run every 5 minutes from 1:20 AM UTC | ||
|
||
# jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - name: Check for code changes | ||
# id: code_changes | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 1 | ||
|
||
# - name: Setup flutter engine | ||
# uses: subosito/flutter-action@v2 | ||
# with: | ||
# channel: "stable" | ||
|
||
# - name: Fetch dependencies | ||
# run: flutter packages get | ||
|
||
# - name: Run tests | ||
# run: flutter test --coverage | ||
|
||
# - name: Determine code changes | ||
# id: determine_changes | ||
# run: | | ||
# if git rev-parse HEAD~1 >/dev/null 2>&1; then | ||
# CHANGES_COUNT=$(git diff --name-only HEAD~1 | wc -l) | ||
# else | ||
# CHANGES_COUNT=$(git ls-files | wc -l) | ||
# fi | ||
# echo "$CHANGES_COUNT number of changes" | ||
# echo "::set-output name=changes::${CHANGES_COUNT}" | ||
|
||
# - name: Nightly Build | ||
# if: ${{ steps.determine_changes.outputs.changes > 0 }} | ||
# run: flutter build apk --debug | ||
# working-directory: ./example |
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