Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from dwyl/gogs-to-gitea
Browse files Browse the repository at this point in the history
Gogs to gitea
  • Loading branch information
nelsonic authored May 17, 2022
2 parents 74d5358 + 25e8f87 commit 8cd879e
Show file tree
Hide file tree
Showing 22 changed files with 1,677 additions and 9 deletions.
11 changes: 11 additions & 0 deletions .env_sample
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
8 changes: 8 additions & 0 deletions .github/dependabot.yml
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
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
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
37 changes: 30 additions & 7 deletions .gitignore
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/*
Loading

0 comments on commit 8cd879e

Please sign in to comment.