-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb20f13
commit 0b7f0f4
Showing
8 changed files
with
209 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
# Maintain dependencies for npm packages | ||
- package-ecosystem: "npm" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" | ||
target-branch: "develop" | ||
allow: | ||
- dependency-type: "production" | ||
assignees: | ||
- "rodcordeiro" | ||
labels: | ||
- "dependencies" | ||
|
||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
target-branch: "develop" | ||
schedule: | ||
interval: "weekly" | ||
allow: | ||
- dependency-type: "all" | ||
labels: | ||
- "dependencies" |
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,11 @@ | ||
# Description | ||
|
||
What is this pull request for? Add a little description about what was done and why. Add images or gists if needed. | ||
|
||
# Type of PR | ||
- [ ] Bugfix | ||
- [ ] New feature | ||
- [ ] Documentation | ||
|
||
# Changes made | ||
What have you added/removed to the 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,49 @@ | ||
{ | ||
"branchPrefix": "updates/", | ||
"baseBranches": [ | ||
"main" | ||
], | ||
"packageRules": [ | ||
{ | ||
"updateTypes": [ | ||
"minor", | ||
"patch", | ||
"pin", | ||
"digest" | ||
], | ||
"automerge": true | ||
}, | ||
{ | ||
"updateTypes": [ | ||
"major" | ||
], | ||
"automerge": false | ||
} | ||
], | ||
"assignAutomerge": true, | ||
"assignees": [ | ||
"rodcordeiro" | ||
], | ||
"labels": [ | ||
"dependencies" | ||
], | ||
"recreateClosed": true, | ||
"rebaseWhen": "conflicted", | ||
"vulnerabilityAlerts": { | ||
"labels": [ | ||
"security" | ||
], | ||
"assignees": [ | ||
"@rodcordeiro" | ||
] | ||
}, | ||
"extends": [ | ||
"config:base", | ||
":dependencyDashboard", | ||
"github>whitesource/merge-confidence:beta" | ||
], | ||
"schedule": [ | ||
"before 3am on the first day of the month" | ||
], | ||
"timezone": "America/Sao_Paulo" | ||
} |
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,39 @@ | ||
name: "Scan code quality" | ||
|
||
on: | ||
push: | ||
branches: ["main", "feat/**", "bug/**", "develop"] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [main] | ||
schedule: | ||
- cron: "0 3 * * 1" | ||
|
||
jobs: | ||
CodeQuality: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: ["javascript"] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
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,34 @@ | ||
name: Expo actions | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
ValidateActor: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
ACTOR: ${{ steps.actor.outputs.ACTOR }} | ||
steps: | ||
- id: actor | ||
run: | | ||
if [[ ${{ github.actor }} != *"[bot]" ]];then | ||
echo "::set-output name=ACTOR::true" | ||
else | ||
echo "::set-output name=ACTOR::false" | ||
fi | ||
GenerateNewBuild: | ||
name: Build new artifact | ||
runs-on: ubuntu-latest | ||
needs: Publish_Updates | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
- uses: expo/expo-github-action@v8 | ||
with: | ||
eas-version: latest | ||
eas-cache: true | ||
token: ${{ secrets.EXPO_TOKEN }} | ||
- run: npm install | ||
- run: eas build -p android --profile production --non-interactive |
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,32 @@ | ||
name: "Validate build and publish preview" | ||
|
||
on: | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ main ] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🏗 Setup repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🏗 Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: yarn | ||
|
||
- name: 🏗 Setup Expo | ||
uses: expo/expo-github-action@v8 | ||
with: | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_TOKEN }} | ||
|
||
- name: 📦 Install dependencies | ||
run: yarn install | ||
|
||
- name: Create preview | ||
uses: expo/expo-github-action/preview@v8 | ||
with: | ||
command: eas update --auto |
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,14 @@ | ||
name: 'Assert Branch Naming Convention' | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
branch-naming-rules: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: deepakputhraya/action-branch-name@master | ||
with: | ||
regex: '([\w]{3,})+\/([\w(?:\-,.,_)]{5,})' # Regex the branch should match. This example enforces grouping | ||
allowed_prefixes: 'feature,stable,fix,updates' # All branches should start with the given prefix | ||
ignore: main,develop # Ignore exactly matching branch names from convention | ||
min_length: 5 # Min length of the branch name | ||
max_length: 50 # Max length of the branch name |
This file was deleted.
Oops, something went wrong.