first pass at the templates

This commit is contained in:
Andy McKay
2019-07-29 09:38:23 -07:00
parent b67cc8228e
commit 4d7a741e07
71 changed files with 717 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Android",
"description": "Build an Android project with Gradle.",
"iconName": "android",
"category": "Mobile"
}
+20
View File
@@ -0,0 +1,20 @@
on: [push]
name: Android
jobs:
build:
name: Build
runs-on: ubuntu-latest # macOS-latest
steps:
- uses: actions/checkout@master
- name: set up JDK 1.8
uses: actions/setup-java@master
with:
version: 1.8
- name: Build with Gradle
run: ./gradlew build
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Ant",
"description": "Build and test a Java project with Apache Ant.",
"iconName": "ant",
"category": "Java"
}
+21
View File
@@ -0,0 +1,21 @@
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@master
with:
version: 1.8
- name: Build with Ant
working-directory: ''
run: ant -noinput -buildfile build.xml
+6
View File
@@ -0,0 +1,6 @@
{
"name": "ASP.NET Core",
"description": "Build and test an ASP.NET Core project targeting .NET Core.",
"iconName": "dotnetcore",
"category": ".NET"
}
+20
View File
@@ -0,0 +1,20 @@
on: [push]
name: ASP.NET Core
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup .NET Core
uses: actions/setup-dotnet@master
with:
version: 2.2.6
- name: Build with dotnet
run: dotnet build --configuration Release
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Blank workflow file",
"description": "Start with a file with the minimum necessary structure.",
"iconName": "blank",
"category": null
}
+18
View File
@@ -0,0 +1,18 @@
on: [push]
jobs:
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,
echo test, and deploy your project.
+6
View File
@@ -0,0 +1,6 @@
{
"name": "C/C++ with Make",
"description": "Build and test a C/C++ project using Make.",
"iconName": "c-cpp",
"category": null
}
+21
View File
@@ -0,0 +1,21 @@
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
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Clojure",
"description": "Build and test a Clojure project with Leiningen.",
"iconName": "clojure",
"category": null
}
+18
View File
@@ -0,0 +1,18 @@
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
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Crystal",
"description": "Build and test a Crystal project.",
"iconName": "crystal",
"category": null
}
+18
View File
@@ -0,0 +1,18 @@
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
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Dart",
"description": "Build and test a Dart project with Pub.",
"iconName": "dart",
"category": null
}
+18
View File
@@ -0,0 +1,18 @@
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
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Docker image",
"description": "Build a Docker image to deploy, run, or push to a registry.",
"iconName": "docker",
"category": null
}
+15
View File
@@ -0,0 +1,15 @@
on: [push]
name: Docker image
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)
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Elixir",
"description": "Build and test an Elixir project with Mix.",
"iconName": "elixir",
"category": null
}
+21
View File
@@ -0,0 +1,21 @@
on: [push]
name: Elixir
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install dependencies
run: |
mix local.rebar --force;
mix local.hex --force;
mix deps.get
- name: Run tests
run: mix test
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Erlang",
"description": "Build and test an Erlang project with rebar.",
"iconName": "erlang",
"category": null
}
+21
View File
@@ -0,0 +1,21 @@
on: [push]
name: Erlang
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
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Gradle",
"description": "Build and test a Java project using a Gradle wrapper script.",
"iconName": "gradle",
"category": "Java"
}
+20
View File
@@ -0,0 +1,20 @@
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@master
with:
version: 1.8
- name: Build with Gradle
run: ./gradlew build
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Haskell",
"description": "Build and test a Haskell project with Cabal.",
"iconName": "haskell",
"category": null
}
+23
View File
@@ -0,0 +1,23 @@
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
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Jekyll",
"description": "Package a Jekyll site using the jekyll/builder Docker image.",
"iconName": "jekyll",
"category": "HTML"
}
+19
View File
@@ -0,0 +1,19 @@
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 \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest \
jekyll build --future
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Maven",
"description": "Build and test a Java project with Apache Maven.",
"iconName": "maven",
"category": "Java"
}
+20
View File
@@ -0,0 +1,20 @@
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@master
with:
version: 1.8
- name: Build with Maven
run: mvn package --file pom.xml
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Node.js",
"description": "Build and test a Node.js project with npm.",
"iconName": "nodejs",
"category": "JavaScript"
}
+24
View File
@@ -0,0 +1,24 @@
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@master
with:
version: 10.x
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm test
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Python Django",
"description": "Test a Django project on multiple versions of Python.",
"iconName": "django",
"category": "Python"
}
+41
View File
@@ -0,0 +1,41 @@
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@master
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
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Python package",
"description": "Create and test a Python package on multiple Python versions.",
"iconName": "python",
"category": "Python"
}
+31
View File
@@ -0,0 +1,31 @@
on: [push]
name: Python package
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@master
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
pytest
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Rust",
"description": "Build and test a Rust project with Cargo.",
"iconName": "rust",
"category": null
}
+18
View File
@@ -0,0 +1,18 @@
on: [push]
name: Rust
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