This repository has been archived by the owner on Mar 25, 2023. It is now read-only.
-
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.
Merge pull request #4 from dwyl/gogs-to-gitea
Gogs to gitea
- Loading branch information
Showing
22 changed files
with
1,677 additions
and
9 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,11 @@ | ||
# URL of your Gitea instance without protocol or trailing forward slash: | ||
export GITEA_URL=gitea-server.fly.dev | ||
|
||
# Get yours from: $GITEA_URL/user/settings/applications | ||
export GITEA_ACCESS_TOKEN=d6fca75c63daa014c187 | ||
|
||
# The absolute path to the SSH *Private* Key | ||
export GITEA_SSH_PRIVATE_KEY_PATH=~/.ssh/id_rsa | ||
|
||
# Optionally set the path where you want to clone git repos: | ||
export GIT_TEMP_DIR_PATH=tmp |
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,8 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: mix | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "07:00" | ||
timezone: Europe/London |
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,43 @@ | ||
name: Elixir CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
name: Build and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# Need this for the nested git submodule: | ||
- name: include test-repo stub Git submodule in base repo | ||
run: git submodule update --init | ||
- name: Setup git user for Git ops | ||
run: | | ||
git config --global user.name "Al Ex" | ||
git config --global user.email "[email protected]" | ||
- name: Set up Elixir | ||
uses: erlef/setup-elixir@885971a72ed1f9240973bd92ab57af8c1aa68f24 | ||
with: | ||
elixir-version: '1.12.3' # Define the elixir version [required] | ||
otp-version: '24.0.2' # Define the OTP version [required] | ||
- name: Restore dependencies cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: deps | ||
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | ||
restore-keys: ${{ runner.os }}-mix- | ||
- name: Install dependencies | ||
run: mix deps.get | ||
- name: Run Tests | ||
run: mix coveralls.json | ||
env: | ||
MIX_ENV: test | ||
GITEA_URL: gitea-server.fly.dev | ||
GITEA_ACCESS_TOKEN: ${{ secrets.GITEA_ACCESS_TOKEN }} | ||
GIT_TEMP_DIR_PATH: $GITHUB_WORKSPACE | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 |
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,10 +1,33 @@ | ||
/_build | ||
/cover | ||
/deps | ||
/doc | ||
# The directory Mix will write compiled artifacts to. | ||
/_build/ | ||
|
||
# If you run "mix test --cover", coverage assets end up here. | ||
/cover/ | ||
|
||
# The directory Mix downloads your dependencies sources to. | ||
/deps/ | ||
|
||
# Where third-party dependencies like ExDoc output generated docs. | ||
/doc/ | ||
|
||
# Ignore .fetch files in case you like to edit your project deps locally. | ||
/.fetch | ||
|
||
# If the VM crashes, it generates a dump, let's ignore it too. | ||
erl_crash.dump | ||
|
||
# Also ignore archive artifacts (built via "mix archive.build"). | ||
*.ez | ||
*.beam | ||
/config/*.secret.exs | ||
.elixir_ls/ | ||
|
||
# Ignore package tarball (built via "mix hex.build"). | ||
gitea-*.tar | ||
|
||
# Temporary files, for example, from tests. | ||
/tmp/ | ||
|
||
# Don't accidentally commit real environment variables | ||
.env | ||
|
||
/public_repo | ||
/public_repo/ | ||
/public_repo/* |
Oops, something went wrong.