From b13ec8908441bf0c3317de46a532a232358df3f4 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Tue, 6 Aug 2019 16:37:30 -0700 Subject: [PATCH] Initial formatting --- ci/android.properties.json | 2 +- ci/android.yml | 13 ++++------ ci/ant.properties.json | 4 ++-- ci/ant.yml | 12 ++++------ ci/asp.net-core.properties.json | 2 +- ci/asp.net-core.yml | 13 ++++------ ci/blank.properties.json | 2 +- ci/blank.yml | 9 ++++--- ci/c-cpp.yml | 12 ++++------ ci/clojure.yml | 11 ++++----- ci/crystal.yml | 11 ++++----- ci/dart.yml | 11 ++++----- ci/docker-image.yml | 9 ++++--- ci/elixir.yml | 6 ++--- ci/erlang.yml | 11 ++++----- ci/gradle.properties.json | 2 +- ci/gradle.yml | 11 ++++----- ci/haskell.yml | 12 ++++------ ci/jekyll.yml | 10 ++++---- ci/maven.properties.json | 2 +- ci/maven.yml | 11 ++++----- ci/node.js.properties.json | 2 +- ci/node.js.yml | 11 ++++----- ci/python-django.properties.json | 6 ----- ci/python-django.yml | 41 -------------------------------- ci/python-package.yml | 12 ++++------ ci/ruby.yml | 9 ++++--- ci/rust.yml | 11 ++++----- 28 files changed, 85 insertions(+), 183 deletions(-) delete mode 100644 ci/python-django.properties.json delete mode 100644 ci/python-django.yml diff --git a/ci/android.properties.json b/ci/android.properties.json index 2c61f6b..a557fd9 100644 --- a/ci/android.properties.json +++ b/ci/android.properties.json @@ -1,5 +1,5 @@ { - "name": "Android", + "name": "Android CI", "description": "Build an Android project with Gradle.", "iconName": "android", "categories": ["Java", "Mobile"] diff --git a/ci/android.yml b/ci/android.yml index c24bdd9..9d43544 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -1,20 +1,17 @@ +name: Android CI + on: [push] -name: Android - jobs: - build: - name: Build - runs-on: ubuntu-latest # macOS-latest + + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: set up JDK 1.8 uses: actions/setup-java@v1 with: version: 1.8 - - name: Build with Gradle run: ./gradlew build diff --git a/ci/ant.properties.json b/ci/ant.properties.json index 2e4d647..4139b67 100644 --- a/ci/ant.properties.json +++ b/ci/ant.properties.json @@ -1,6 +1,6 @@ { - "name": "Ant", + "name": "Java with Ant", "description": "Build and test a Java project with Apache Ant.", "iconName": "ant", - "categories": ["Ant Build System", "Java"] + "categories": ["Ant", "Java"] } \ No newline at end of file diff --git a/ci/ant.yml b/ci/ant.yml index 2461b6d..471886c 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -1,21 +1,17 @@ +name: Java CI + on: [push] -name: Ant - jobs: - build: - name: Build + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: version: 1.8 - - name: Build with Ant - working-directory: '' run: ant -noinput -buildfile build.xml diff --git a/ci/asp.net-core.properties.json b/ci/asp.net-core.properties.json index a222f8e..02756f1 100644 --- a/ci/asp.net-core.properties.json +++ b/ci/asp.net-core.properties.json @@ -2,5 +2,5 @@ "name": "ASP.NET Core", "description": "Build and test an ASP.NET Core project targeting .NET Core.", "iconName": "dotnetcore", - "categories": ["ASP"] + "categories": ["ASP", "ASP.NET", ".NET"] } \ No newline at end of file diff --git a/ci/asp.net-core.yml b/ci/asp.net-core.yml index 90a4098..c765246 100644 --- a/ci/asp.net-core.yml +++ b/ci/asp.net-core.yml @@ -1,20 +1,17 @@ +name: ASP.NET Core CI + on: [push] -name: ASP.NET Core - jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: version: 2.2.108 - - name: Build with dotnet run: dotnet build --configuration Release diff --git a/ci/blank.properties.json b/ci/blank.properties.json index be0c665..927085b 100644 --- a/ci/blank.properties.json +++ b/ci/blank.properties.json @@ -1,5 +1,5 @@ { - "name": "Blank workflow file", + "name": "Simple workflow", "description": "Start with a file with the minimum necessary structure.", "iconName": "blank", "categories": null diff --git a/ci/blank.yml b/ci/blank.yml index 4fbf968..100198a 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -1,17 +1,16 @@ +name: CI + on: [push] jobs: + build: - run: - name: Run runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: Run a one-line script run: echo Hello, world! - - name: Run a multi-line script run: | echo Add other actions to build, diff --git a/ci/c-cpp.yml b/ci/c-cpp.yml index 8e0e85a..399184e 100644 --- a/ci/c-cpp.yml +++ b/ci/c-cpp.yml @@ -1,21 +1,17 @@ +name: C/C++ CI + on: [push] -name: C/C++ with make - jobs: - build: - name: Build + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: configure run: ./configure - - name: make run: make - - name: make test run: make test diff --git a/ci/clojure.yml b/ci/clojure.yml index 6ee3c8f..957125e 100644 --- a/ci/clojure.yml +++ b/ci/clojure.yml @@ -1,18 +1,15 @@ +name: Clojure CI + on: [push] -name: Clojure - jobs: - build: - name: Build + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: Install dependencies run: lein deps - - name: Run tests run: lein test diff --git a/ci/crystal.yml b/ci/crystal.yml index 8afbea2..9dc3372 100644 --- a/ci/crystal.yml +++ b/ci/crystal.yml @@ -1,18 +1,15 @@ +name: Crystal CI + on: [push] -name: Crystal - jobs: - build: - name: Build + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: Install dependencies run: shards install - - name: Run tests run: crystal spec diff --git a/ci/dart.yml b/ci/dart.yml index 3854d9f..e54d14c 100644 --- a/ci/dart.yml +++ b/ci/dart.yml @@ -1,18 +1,15 @@ +name: Dart CI + on: [push] -name: Dart - jobs: - build: - name: Build + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: Install dependencies run: pub get - - name: Run tests run: pub run test diff --git a/ci/docker-image.yml b/ci/docker-image.yml index eaf091d..2508188 100644 --- a/ci/docker-image.yml +++ b/ci/docker-image.yml @@ -1,15 +1,14 @@ -on: [push] +name: Docker Image CI -name: Docker image +on: [push] jobs: build: - name: Build + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: Build the Docker image run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) diff --git a/ci/elixir.yml b/ci/elixir.yml index 7e1795d..bf5cbac 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -1,10 +1,10 @@ -on: push +name: Elixir CI -name: CI +on: push jobs: build: - name: Build + runs-on: ubuntu-latest container: diff --git a/ci/erlang.yml b/ci/erlang.yml index d7e14d2..dfd833f 100644 --- a/ci/erlang.yml +++ b/ci/erlang.yml @@ -1,21 +1,18 @@ -on: [push] +name: Erlang CI -name: Erlang +on: [push] jobs: build: - name: Build + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: Install dependencies run: rebar get-deps - - name: Compile run: rebar compile - - name: Run tests run: rebar skip_deps=true eunit diff --git a/ci/gradle.properties.json b/ci/gradle.properties.json index bf1a7d2..c58d68a 100644 --- a/ci/gradle.properties.json +++ b/ci/gradle.properties.json @@ -2,5 +2,5 @@ "name": "Gradle", "description": "Build and test a Java project using a Gradle wrapper script.", "iconName": "gradle", - "categories": ["Java"] + "categories": ["Java", "Gradle"] } \ No newline at end of file diff --git a/ci/gradle.yml b/ci/gradle.yml index ad7a7a2..1385ed1 100644 --- a/ci/gradle.yml +++ b/ci/gradle.yml @@ -1,20 +1,17 @@ +name: Java CI + on: [push] -name: Gradle - jobs: - build: - name: Build + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: version: 1.8 - - name: Build with Gradle run: ./gradlew build diff --git a/ci/haskell.yml b/ci/haskell.yml index 25afa2c..5074504 100644 --- a/ci/haskell.yml +++ b/ci/haskell.yml @@ -1,23 +1,19 @@ +name: Haskell CI + on: [push] -name: Haskell - jobs: - build: - name: Build + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: Install dependencies run: cabal install --only-dependencies --enable-tests - - name: Build run: | cabal configure --enable-tests cabal build - - name: Run tests run: cabal test diff --git a/ci/jekyll.yml b/ci/jekyll.yml index 2a84e76..8cc3281 100644 --- a/ci/jekyll.yml +++ b/ci/jekyll.yml @@ -1,16 +1,14 @@ +name: Jekyll site CI + on: [push] -name: Jekyll site - jobs: - build: - name: Build + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: Build the site in the jekyll/builder container run: | docker run \ diff --git a/ci/maven.properties.json b/ci/maven.properties.json index 2036b6e..1875bdc 100644 --- a/ci/maven.properties.json +++ b/ci/maven.properties.json @@ -2,5 +2,5 @@ "name": "Maven", "description": "Build and test a Java project with Apache Maven.", "iconName": "maven", - "categories": ["Java"] + "categories": ["Java", "Maven"] } \ No newline at end of file diff --git a/ci/maven.yml b/ci/maven.yml index 0f5dacb..26fae23 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -1,20 +1,17 @@ +name: Java CI + on: [push] -name: Maven - jobs: - build: - name: Build + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: version: 1.8 - - name: Build with Maven run: mvn package --file pom.xml diff --git a/ci/node.js.properties.json b/ci/node.js.properties.json index 43e45a3..99a79bc 100644 --- a/ci/node.js.properties.json +++ b/ci/node.js.properties.json @@ -2,5 +2,5 @@ "name": "Node.js", "description": "Build and test a Node.js project with npm.", "iconName": "nodejs", - "categories": ["JavaScript"] + "categories": ["JavaScript", "Node", "Npm"] } \ No newline at end of file diff --git a/ci/node.js.yml b/ci/node.js.yml index a4dc0b9..d57a71f 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -1,21 +1,18 @@ +name: Node CI + on: [push] -name: Node.js - jobs: - build: - name: Build + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: Use Node.js 10.x uses: actions/setup-node@v1 with: version: 10.x - - name: npm install, build, and test run: | npm install diff --git a/ci/python-django.properties.json b/ci/python-django.properties.json deleted file mode 100644 index 468969a..0000000 --- a/ci/python-django.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Python Django", - "description": "Test a Django project on multiple versions of Python.", - "iconName": "django", - "categories": ["Python", "HTML+Django"] -} \ No newline at end of file diff --git a/ci/python-django.yml b/ci/python-django.yml deleted file mode 100644 index 598a161..0000000 --- a/ci/python-django.yml +++ /dev/null @@ -1,41 +0,0 @@ -on: [push] - -name: Python Django - -jobs: - - build: - name: Build - runs-on: ubuntu-latest - steps: - - - uses: actions/checkout@master - - - name: Set up Python 3.6 - uses: actions/setup-python@v1 - with: - version: 3.6 - - - name: Export project path - shell: python - run: | - """Search all subdirectories for `manage.py`.""" - from glob import iglob - from os import path - manage_py = next(iglob(path.join(**, manage.py), recursive=True), None) - if not manage_py: - raise SystemExit(Could not find a Django project) - project_location = path.dirname(path.abspath(manage_py)) - print(Found Django project in , project_location) - print(##[set-env name=DJANGO_PROJECT_ROOT]{}.format(project_location)) - - - name: Install prerequisites - run: | - python -m pip install --upgrade pip setuptools wheel - pip install -r requirements.txt - pip install unittest-xml-reporting - - - name: Run tests - run: | - pushd "${DJANGO_PROJECT_ROOT}" - python manage.py test --testrunner xmlrunner.extra.djangotestrunner.XMLTestRunner --no-input diff --git a/ci/python-package.yml b/ci/python-package.yml index 2db2b9f..a3980c2 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -1,30 +1,26 @@ -on: [push] - name: Python package -jobs: +on: [push] +jobs: build: - name: Build + runs-on: ubuntu-latest strategy: max-parallel: 4 matrix: python-version: [2.7, 3.5, 3.6, 3.7] + steps: - - uses: actions/checkout@master - - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: version: ${{ matrix.python-version }} - - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - - name: Test with pytest run: | pip install pytest diff --git a/ci/ruby.yml b/ci/ruby.yml index d042262..7ddf602 100644 --- a/ci/ruby.yml +++ b/ci/ruby.yml @@ -1,19 +1,18 @@ name: Ruby + on: [push] + jobs: - build: - name: Build + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: Set up Ruby 2.6 uses: actions/setup-ruby@v1 with: version: 2.6.x - - name: Build and test with Rake run: | gem install bundler diff --git a/ci/rust.yml b/ci/rust.yml index 4ad3f8c..a11fc45 100644 --- a/ci/rust.yml +++ b/ci/rust.yml @@ -1,18 +1,15 @@ -on: [push] - name: Rust +on: [push] + jobs: - build: - name: Build + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: Build run: cargo build --verbose - - name: Run tests run: cargo test --verbose