Initial formatting
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "Android",
|
||||
"name": "Android CI",
|
||||
"description": "Build an Android project with Gradle.",
|
||||
"iconName": "android",
|
||||
"categories": ["Java", "Mobile"]
|
||||
|
||||
+5
-8
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
+4
-8
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
+5
-8
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
+4
-5
@@ -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,
|
||||
|
||||
+4
-8
@@ -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
|
||||
|
||||
+4
-7
@@ -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
|
||||
|
||||
+4
-7
@@ -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
|
||||
|
||||
+4
-7
@@ -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
|
||||
|
||||
+4
-5
@@ -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)
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
on: push
|
||||
name: Elixir CI
|
||||
|
||||
name: CI
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
container:
|
||||
|
||||
+4
-7
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
+4
-7
@@ -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
|
||||
|
||||
+4
-8
@@ -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
|
||||
|
||||
+4
-6
@@ -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 \
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
"name": "Maven",
|
||||
"description": "Build and test a Java project with Apache Maven.",
|
||||
"iconName": "maven",
|
||||
"categories": ["Java"]
|
||||
"categories": ["Java", "Maven"]
|
||||
}
|
||||
+4
-7
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
+4
-7
@@ -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
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"name": "Python Django",
|
||||
"description": "Test a Django project on multiple versions of Python.",
|
||||
"iconName": "django",
|
||||
"categories": ["Python", "HTML+Django"]
|
||||
}
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
+4
-5
@@ -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
|
||||
|
||||
+4
-7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user