Skip to content

Commit

Permalink
remove submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
EricApostal committed Dec 19, 2024
1 parent 7dac265 commit 0c73451
Show file tree
Hide file tree
Showing 583 changed files with 89,227 additions and 4 deletions.
8 changes: 5 additions & 3 deletions bonfire/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,11 @@ packages:
fireview:
dependency: "direct main"
description:
path: "../fireview/fireview"
relative: true
source: path
path: "."
ref: HEAD
resolved-ref: e8c1ef6659d57c72c6f0a74f8d87a23d4e93e66d
url: "https://github.com/ericApostal/fireview"
source: git
version: "0.0.1"
fixnum:
dependency: transitive
Expand Down
2 changes: 1 addition & 1 deletion bonfire/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
sdk: flutter

fireview:
path: ../fireview/fireview
git: https://github.com/ericApostal/fireview

firebridge:
path: ../firebridge
Expand Down
28 changes: 28 additions & 0 deletions firebridge/.github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. Windows, Linux]
- Dart version [e.g. 2.9.0]
- Nyxx version [e.g. 1.0.0]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions firebridge/.github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
27 changes: 27 additions & 0 deletions firebridge/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.

Use smart commits here to manipulate issues (eg. Fixes #issue)

## Connected issues & other potential problems

If changes in PR are connected to other issues or are affecting code in other parts of framework
(e.g. in main package or any other subpackage) make sure to link issue/PR and describe said problem

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

# Checklist:

- [ ] Ran `dart analyze` or `make analyze` and fixed all issues
- [ ] Ran `dart format --set-exit-if-changed -l 160 ./lib` or `make format` and fixed all issues
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] I have added tests that prove my fix is effective or that my feature works
47 changes: 47 additions & 0 deletions firebridge/.github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Deploy dev docs to nyxx.l7ssha.xyz

on:
push:
branches:
- dev
- next

jobs:
deploy-docs:
runs-on: ubuntu-latest

steps:
- name: Setup Dart Action
uses: dart-lang/setup-dart@v1

- name: Checkout
uses: actions/checkout@v2.3.4

- name: Cache
uses: actions/cache@v2
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pubspec-
- name: Install dependencies
run: dart pub get

- name: Generate docs
run: dart doc

- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

- name: Deploy nyxx dev docs
uses: easingthemes/ssh-deploy@v2.1.5
env:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SSH_SERVER_KEY }}
ARGS: "-rltDzvO"
SOURCE: "doc/api/"
REMOTE_HOST: ${{ secrets.DEPLOY_REMOTE_HOST }}
REMOTE_USER: ${{ secrets.DEPLOY_REMOTE_USER }}
TARGET: "${{ secrets.DEPLOY_REMOTE_TARGET }}/dartdocs/nyxx/${{ steps.extract_branch.outputs.branch }}/"
35 changes: 35 additions & 0 deletions firebridge/.github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Integration tests

on:
push:
branches-ignore:
- main

jobs:
tests:
name: Run integration tests
runs-on: ubuntu-latest
env:
TEST_TOKEN: ${{ secrets.TEST_TOKEN }}
TEST_TEXT_CHANNEL: ${{ secrets.TEST_TEXT_CHANNEL }}
TEST_GUILD: ${{ secrets.TEST_GUILD }}
steps:
- name: Setup Dart Action
uses: dart-lang/setup-dart@v1

- name: Checkout
uses: actions/checkout@v2.3.4

- name: Cache
uses: actions/cache@v2
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pubspec-
- name: Install dependencies
run: dart pub get

- name: Integration tests
run: dart run test test/integration/**
49 changes: 49 additions & 0 deletions firebridge/.github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Publish nyxx to pub.dev

on:
push:
branches:
- main

jobs:
nyxx_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cache
uses: actions/cache@v2
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pubspec-
- name: 'publish nyxx package to pub.dev'
id: publish
uses: k-paxian/dart-package-publisher@master
with:
skipTests: true
force: true
suppressBuildRunner: true
credentialJson: ${{ secrets.CREDENTIAL_JSON }}

- name: 'Commit release tag'
if: steps.publish.outputs.success
uses: hole19/git-tag-action@master
env:
TAG: ${{steps.publish.outputs.package}}-${{steps.publish.outputs.localVersion}}
GITHUB_TOKEN: ${{ secrets.TAG_RELEASE_TOKEN }}

- name: 'Create Release'
if: steps.publish.outputs.success
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.TAG_RELEASE_TOKEN }}
with:
tag_name: ${{steps.publish.outputs.package}}-${{steps.publish.outputs.localVersion}}
release_name: ${{steps.publish.outputs.localVersion}}
body: See CHANGELOG.md for the changes in this version.
draft: false
prerelease: false
85 changes: 85 additions & 0 deletions firebridge/.github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Run unit tests

on:
push:
branches-ignore:
- main
pull_request:

jobs:
analyze:
name: Analyze project source
runs-on: ubuntu-latest
steps:
- name: Setup Dart Action
uses: dart-lang/setup-dart@v1

- name: Checkout
uses: actions/checkout@v2.3.4

- name: Cache
uses: actions/cache@v2
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pubspec-
- name: Install dependencies
run: dart pub get

- name: Analyze project source
run: dart analyze

format:
name: Check project formatting
runs-on: ubuntu-latest
steps:
- name: Setup Dart Action
uses: dart-lang/setup-dart@v1

- name: Checkout
uses: actions/checkout@v2.3.4

- name: Cache
uses: actions/cache@v2
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pubspec-
- name: Install dependencies
run: dart pub get

- name: Format
run: dart format --set-exit-if-changed -l 160 ./lib

tests:
needs: [ format, analyze ]
name: Unit tests
runs-on: ubuntu-latest
env:
TEST_TOKEN: ${{ secrets.TEST_TOKEN }}
TEST_TEXT_CHANNEL: ${{ secrets.TEST_TEXT_CHANNEL }}
TEST_GUILD: ${{ secrets.TEST_GUILD }}
steps:
- name: Setup Dart Action
uses: dart-lang/setup-dart@v1

- name: Checkout
uses: actions/checkout@v2.3.4

- name: Cache
uses: actions/cache@v2
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pubspec-
- name: Install dependencies
run: dart pub get

- name: Unit tests
run: dart run test --coverage="coverage" test/unit/**
59 changes: 59 additions & 0 deletions firebridge/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# See https://www.dartlang.org/guides/libraries/private-files

# Files and directories created by pub
.dart_tool/
.packages
build/
pubspec.lock

# Pubspec overrides for local testing
pubspec_overrides.yaml

# Directory created by dartdoc
doc/api/

# dotenv environment variables file
.env*

# Avoid committing generated Javascript files:
*.dart.js
*.info.json # Produced by the --dump-info flag.
*.js # When generated by dart2js. Don't specify *.js if your
# project includes source files written in JavaScript.
*.js_
*.js.deps
*.js.map

.flutter-plugins
.flutter-plugins-dependencies

# IDE configuration folders
.vscode/
.atom/
.idea/
*.iml

# Test output and coverage
log.txt
coverage/

local/
index.html
docs/
.buildlog
.project
.pub
**/packages
*~
*#
.#*
/README.html
/nyxx.wiki/
/test/private.dart
/publish_docs.sh
/test/mirrors.dart
/private
private-*.dart
test-*.dart
[Rr]pc*
ready-event.json
Loading

0 comments on commit 0c73451

Please sign in to comment.