Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwinter committed Dec 13, 2024
2 parents 9073421 + b254549 commit 1784fda
Show file tree
Hide file tree
Showing 1,336 changed files with 646,072 additions and 27 deletions.
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ trim_trailing_whitespace = true
end_of_line = crlf
trim_trailing_whitespace = false

[*.{g,gradle,json,xml,xsd,yml}]
[*.{fix,g,gradle,json,md,mwe2,sh,vim,xml,xsd,xtext,yml}]
indent_size = 2

[*.tmLanguage]
indent_style = tab

[metafacture-io/src/test/resources/org/metafacture/io/compressed.txt]
insert_final_newline = false

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build

on: push

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -10,5 +11,12 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with gradle
- name: Build with Gradle
run: ./gradlew check
env:
METAFIX_LOG_PASSED: true
- name: Install language server
run: ./gradlew installServer
- name: Install fix extension
working-directory: metafix-vsc/
run: npm install
42 changes: 42 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

name: Build and Deploy

on:
push:
branches:
- deploy

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
- name: Set up vsce
run: npm install -g vsce
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Gradle
run: |
chmod +x gradlew
./gradlew build
./gradlew installServer
- name: Create fix extension
working-directory: metafix-vsc/
run: |
npm install
vsce package -o fix.vsix
- name: Pushes vsix to GitHub Pages
uses: dmnemec/[email protected]
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: 'metafix-vsc/fix.vsix'
destination_repo: 'metafacture/metafacture.github.io'
destination_branch: main
destination_folder: 'ide-extensions'
user_email: '${{ github.actor }}@users.noreply.github.com'
user_name: '${{ github.actor }}'
18 changes: 16 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
target/

# Ignore temporary gradle files:
.gradle
.gradle/
.gradletasknamecache
build
build/

# Ignore tmp directory
tmp
Expand Down Expand Up @@ -53,3 +53,17 @@ buildbot.keyring
# Ignore files with sensitive data
gradle.properties
secring.gpg

# Ignore metafacture-fix files
*.jfr
*.vsix
generated/
node_modules/
package-lock.json
xtext-gen/
xtext-server/
/metafix/src/test/resources/org/metafacture/metafix/integration/**/*.diff
/metafix/src/test/resources/org/metafacture/metafix/integration/**/*.err
/metafix/src/test/resources/org/metafacture/metafix/integration/**/*.out
/metafix/src/test/resources/org/metafacture/metafix/integration/**/output-*
!/metafix/src/test/resources/org/metafacture/metafix/integration/**/expected.err
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ As a general rule, we don't change public commit history, i.e. we don’t use ``

#### Code Formatting and Quality

Please format your code according to [this EditorConfig file](https://github.com/metafacture/metafacture-fix/blob/master/.editorconfig) and consider our current [code quality and style guidelines](https://github.com/metafacture/metafacture-core/wiki/Code-Quality-and-Style).
Please format your code according to [this EditorConfig file](https://github.com/metafacture/metafacture-core/blob/master/.editorconfig) and consider our current [code quality and style guidelines](https://github.com/metafacture/metafacture-core/wiki/Code-Quality-and-Style).

The [metafacture-fix build](https://github.com/metafacture/metafacture-fix/blob/master/build.gradle) performs automated [EditorConfig](https://github.com/metafacture/metafacture-fix/blob/master/.editorconfig) and [Checkstyle](https://github.com/metafacture/metafacture-fix/blob/master/config/checkstyle/checkstyle.xml) checks.
The [metafacture-core build](https://github.com/metafacture/metafacture-core/blob/master/build.gradle) performs automated [EditorConfig](https://github.com/metafacture/metafacture-core/blob/master/.editorconfig) and [Checkstyle](https://github.com/metafacture/metafacture-core/blob/master/config/checkstyle/checkstyle.xml) checks.

The code is automatically [quality-checked on sonarcloud.io](https://sonarcloud.io/dashboard?id=org.metafacture%3Ametafacture-core) when pushed to GitHub.

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Apache License
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

Expand Down
Loading

0 comments on commit 1784fda

Please sign in to comment.