-
Notifications
You must be signed in to change notification settings - Fork 9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v2fly-master' into master
- Loading branch information
Showing
193 changed files
with
5,883 additions
and
5,311 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,7 +1,17 @@ | ||
# 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://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: gomod | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
open-pull-requests-limit: 10 | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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
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
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,24 +1,59 @@ | ||
name: Lint Code Base | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [master] | ||
pull_request: | ||
branches: [ master ] | ||
types: [assigned, opened, synchronize, reopened] | ||
branches: [master] | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
build: | ||
name: Lint Code Base | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.14 | ||
|
||
- name: Checkout codebase | ||
uses: actions/checkout@v2 | ||
|
||
- name: Lint Code Base | ||
uses: github/super-linter@v2.2.0 | ||
- name: Cache go module | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-go- | ||
|
||
- name: Show if need to format code | ||
if: ${{ always() }} | ||
run: | | ||
filesNeedToFormat=$(go fmt ./...) | ||
if [[ $filesNeedToFormat ]]; then | ||
echo -e "\033[0;36m[Error] The following Go files need to be formatted:\033[0m" | ||
echo -e "\033[0;31m$filesNeedToFormat\033[0m" | ||
exit 1 | ||
fi | ||
- name: Lint *.go files | ||
if: ${{ always() }} | ||
run: | | ||
go vet $(go list ./... | grep -v /external/) | ||
if [[ $? != 0 ]]; then | ||
exit 1 | ||
fi | ||
- name: Lint other files | ||
if: ${{ always() }} | ||
uses: github/super-linter@v3.9.2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VALIDATE_ALL_CODEBASE: false | ||
VALIDATE_BASH: false | ||
VALIDATE_DOCKERFILE: false | ||
VALIDATE_DOCKERFILE_HADOLINT: false | ||
VALIDATE_GO: false | ||
VALIDATE_JSON: false | ||
VALIDATE_ANSIBLE: false | ||
VALIDATE_MD: false | ||
VALIDATE_PROTOBUF: false |
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,37 +1,24 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Sign | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
release: | ||
types: [released] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
sign: | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
# Invoke release signing | ||
- name: make it run | ||
run: chmod +x $GITHUB_WORKSPACE/release/requestsign_github.sh | ||
- name: Checkout default branch | ||
uses: actions/checkout@v2 | ||
|
||
# Invoke release signing | ||
- name: make it run | ||
run: chmod +x $GITHUB_WORKSPACE/release/requestsign.sh | ||
- name: Grant it execution permission | ||
run: | | ||
chmod +x $GITHUB_WORKSPACE/release/requestsign_github.sh | ||
chmod +x $GITHUB_WORKSPACE/release/requestsign.sh | ||
# Invoke release signing | ||
- name: Invoke release signing | ||
env: | ||
SIGN_SERVICE_PASSWORD: ${{ secrets.SIGN_SERVICE_PASSWORD }} | ||
SIGN_SERIVCE_URL: ${{ secrets.SIGN_SERIVCE_URL }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: $GITHUB_WORKSPACE/release/requestsign_github.sh | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: $GITHUB_WORKSPACE/release/requestsign_github.sh |
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
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
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,24 @@ | ||
name: Update Geofiles | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * FRI" | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout codebase | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download | ||
run: | | ||
curl -L -o release/config/geoip.dat "https://github.com/v2fly/geoip/raw/release/geoip.dat" | ||
curl -L -o release/config/geosite.dat "https://github.com/v2fly/domain-list-community/raw/release/dlc.dat" | ||
- name: push | ||
run: | | ||
git config --local user.email "action@github.com" | ||
git config --local user.name "GitHub Action" | ||
git commit -am "update geoip, geosite" | ||
git push -v --progress |
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
Oops, something went wrong.