diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 89095bf..f711b77 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,9 +4,10 @@ Hi there 👋 We are excited that you want to contribute a new workflow to this repo. By doing this you are helping people get up and running with GitHub Actions and that's cool 😎. -Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](LICENSE.md). +Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](https://github.com/actions/starter-workflows/blob/master/LICENSE). -Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms. +Please note that this project is released with a [Contributor Code of Conduct]( +https://github.com/actions/.github/blob/master/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms. Before merging a new workflow, the following requirements need to be met: diff --git a/ci/android.yml b/ci/android.yml index 23f10f1..d03d182 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/ci/ant.yml b/ci/ant.yml index d95d6b4..eb70532 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/ci/aws.yml b/ci/aws.yml index 2477e88..374ff09 100644 --- a/ci/aws.yml +++ b/ci/aws.yml @@ -38,7 +38,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1 diff --git a/ci/azure.yml b/ci/azure.yml index f3683d6..1e4c5b1 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -23,7 +23,7 @@ jobs: name: Build and Deploy runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v2 - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v1 with: diff --git a/ci/blank.yml b/ci/blank.yml index 6bee778..317bc22 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Run a one-line script run: echo Hello, world! - name: Run a multi-line script diff --git a/ci/c-cpp.yml b/ci/c-cpp.yml index 2ec6606..16c888d 100644 --- a/ci/c-cpp.yml +++ b/ci/c-cpp.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: configure run: ./configure - name: make diff --git a/ci/clojure.yml b/ci/clojure.yml index 7932491..2ed34a4 100644 --- a/ci/clojure.yml +++ b/ci/clojure.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Install dependencies run: lein deps - name: Run tests diff --git a/ci/crystal.yml b/ci/crystal.yml index 3f937eb..ea1f58c 100644 --- a/ci/crystal.yml +++ b/ci/crystal.yml @@ -11,7 +11,7 @@ jobs: image: crystallang/crystal steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Install dependencies run: shards install - name: Run tests diff --git a/ci/dart.yml b/ci/dart.yml index 2b99c64..74be049 100644 --- a/ci/dart.yml +++ b/ci/dart.yml @@ -11,7 +11,7 @@ jobs: image: google/dart:latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Install dependencies run: pub get - name: Run tests diff --git a/ci/docker-image.yml b/ci/docker-image.yml index d0e70b8..904330b 100644 --- a/ci/docker-image.yml +++ b/ci/docker-image.yml @@ -9,6 +9,6 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Build the Docker image run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) diff --git a/ci/docker-push.yml b/ci/docker-push.yml index 51a36f3..c7e9392 100644 --- a/ci/docker-push.yml +++ b/ci/docker-push.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Run tests run: | @@ -45,7 +45,7 @@ jobs: if: github.event_name == 'push' steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Build image run: docker build . --file Dockerfile --tag image diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index e04df52..3d11219 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: diff --git a/ci/elixir.yml b/ci/elixir.yml index c0bb8c8..51b3088 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -1,23 +1,23 @@ -name: Elixir CI - -on: push - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Setup elixir - uses: actions/setup-elixir@v1.0.0 - with: - elixir-version: 1.9.x # Define the elixir version [required] - otp-version: 22.x # Define the OTP version [required] - - name: Install Dependencies - run: | - mix local.rebar --force - mix local.hex --force - mix deps.get - - name: Run Tests - run: mix test +name: Elixir CI + +on: push + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup elixir + uses: actions/setup-elixir@v1.0.0 + with: + elixir-version: 1.9.x # Define the elixir version [required] + otp-version: 22.x # Define the OTP version [required] + - name: Install Dependencies + run: | + mix local.rebar --force + mix local.hex --force + mix deps.get + - name: Run Tests + run: mix test diff --git a/ci/erlang.yml b/ci/erlang.yml index e67464c..0b570b9 100644 --- a/ci/erlang.yml +++ b/ci/erlang.yml @@ -12,7 +12,7 @@ jobs: image: erlang:22.0.7 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Compile run: rebar3 compile - name: Run tests diff --git a/ci/gem-push.yml b/ci/gem-push.yml index ff0bfb3..a635f2e 100644 --- a/ci/gem-push.yml +++ b/ci/gem-push.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v2 - name: Set up Ruby 2.6 uses: actions/setup-ruby@v1 with: diff --git a/ci/go.yml b/ci/go.yml index 169022b..27e1c6e 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -14,7 +14,7 @@ jobs: id: go - name: Check out code into the Go module directory - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Get dependencies run: | diff --git a/ci/google.yml b/ci/google.yml index dba17b2..0211ad7 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -4,7 +4,7 @@ # # 1. Ensure that your repository contains the necessary configuration for your Google Kubernetes Engine cluster, including deployment.yml, kustomization.yml, service.yml, etc. # -# 2. Set up secrets in your workspace: GKE_PROJECT with the name of the project, GKE_EMAIL with the service account email, GKE_KEY with the service account key. +# 2. Set up secrets in your workspace: GKE_PROJECT with the name of the project, GKE_EMAIL with the service account email, GKE_KEY with the Base64 encoded JSON service account key (https://github.com/GoogleCloudPlatform/github-actions/tree/docs/service-account-key/setup-gcloud#inputs). # # 3. Change the values for the GKE_ZONE, GKE_CLUSTER and IMAGE environment variables (below). @@ -31,7 +31,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@master + uses: actions/checkout@v2 # Setup gcloud CLI - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master @@ -71,4 +71,4 @@ jobs: ./kustomize edit set image gcr.io/$GKE_PROJECT/$IMAGE:${GITHUB_SHA} ./kustomize build . | kubectl apply -f - kubectl rollout status deployment/gke-test - kubectl get services -o wide \ No newline at end of file + kubectl get services -o wide diff --git a/ci/gradle.yml b/ci/gradle.yml index dc24a2e..4443382 100644 --- a/ci/gradle.yml +++ b/ci/gradle.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/ci/haskell.yml b/ci/haskell.yml index 2f9a0d1..3aa0933 100644 --- a/ci/haskell.yml +++ b/ci/haskell.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-haskell@v1 with: ghc-version: '8.6.5' diff --git a/ci/jekyll.yml b/ci/jekyll.yml index 7820958..bcb881d 100644 --- a/ci/jekyll.yml +++ b/ci/jekyll.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Build the site in the jekyll/builder container run: | docker run \ diff --git a/ci/laravel.yml b/ci/laravel.yml index c3841eb..352de91 100644 --- a/ci/laravel.yml +++ b/ci/laravel.yml @@ -6,13 +6,15 @@ jobs: laravel-tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Copy .env run: php -r "file_exists('.env') || copy('.env.example', '.env');" - name: Install Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist - name: Generate key run: php artisan key:generate + - name: Directory Permissions + run: chmod -R 777 storage bootstrap/cache - name: Create Database run: | mkdir -p database diff --git a/ci/maven.yml b/ci/maven.yml index dbc347f..ee2c5eb 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/ci/node.js.yml b/ci/node.js.yml index a2aece3..e72f5ac 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -1,4 +1,4 @@ -name: Node CI +name: Node.js CI on: [push] @@ -12,7 +12,7 @@ jobs: node-version: [8.x, 10.x, 12.x] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index ed81431..0eede46 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -8,7 +8,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 12 @@ -19,7 +19,7 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 12 @@ -33,7 +33,7 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 12 diff --git a/ci/php.yml b/ci/php.yml index 8e856b8..1eb9bf7 100644 --- a/ci/php.yml +++ b/ci/php.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Validate composer.json and composer.lock run: composer validate diff --git a/ci/properties/npm-publish.properties.json b/ci/properties/npm-publish.properties.json index 989c262..da3da18 100644 --- a/ci/properties/npm-publish.properties.json +++ b/ci/properties/npm-publish.properties.json @@ -1,6 +1,6 @@ { "name": "Node.js Package", - "description": "Publishes a Node.js package to npm and GitHub Package Registry.", + "description": "Publishes a Node.js package to npm and GitHub Packages.", "iconName": "node-package-transparent", "categories": ["JavaScript", "SDLC"] } diff --git a/ci/python-app.yml b/ci/python-app.yml index 07a10be..4c81e5e 100644 --- a/ci/python-app.yml +++ b/ci/python-app.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up Python 3.8 uses: actions/setup-python@v1 with: diff --git a/ci/python-package.yml b/ci/python-package.yml index 49c9f0d..92dc4fc 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -7,12 +7,11 @@ jobs: runs-on: ubuntu-latest strategy: - max-parallel: 5 matrix: python-version: [2.7, 3.5, 3.6, 3.7, 3.8] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: diff --git a/ci/python-publish.yml b/ci/python-publish.yml index 21f2f01..b143a53 100644 --- a/ci/python-publish.yml +++ b/ci/python-publish.yml @@ -8,7 +8,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v1 with: diff --git a/ci/ruby.yml b/ci/ruby.yml index 7258d72..cb69ab4 100644 --- a/ci/ruby.yml +++ b/ci/ruby.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up Ruby 2.6 uses: actions/setup-ruby@v1 with: diff --git a/ci/rust.yml b/ci/rust.yml index 9ca641b..00f2bf5 100644 --- a/ci/rust.yml +++ b/ci/rust.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Build run: cargo build --verbose - name: Run tests diff --git a/ci/scala.yml b/ci/scala.yml index fbeee57..545ce18 100644 --- a/ci/scala.yml +++ b/ci/scala.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/ci/swift.yml b/ci/swift.yml index 2e76632..9306888 100644 --- a/ci/swift.yml +++ b/ci/swift.yml @@ -8,7 +8,7 @@ jobs: runs-on: macOS-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Build run: swift build -v - name: Run tests