Skip to content

Commit

Permalink
Set shell defaults globally
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mirić committed Sep 30, 2020
1 parent 7708840 commit 4caaea7
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ on:
- v*
pull_request:

defaults:
run:
shell: bash

env:
APP_NAME: "k6"
DOCKER_IMAGE_ID: ${{ github.repository }}

jobs:
deps:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -34,9 +35,6 @@ jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
env:
GOLANGCI_VERSION: v1.31
GO111MODULE: 'on'
Expand All @@ -62,9 +60,6 @@ jobs:
go-version: [1.14.x, 1.15.x]
platform: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
defaults:
run:
shell: bash
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
Expand Down Expand Up @@ -101,9 +96,6 @@ jobs:
configure:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
defaults:
run:
shell: bash
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
Expand All @@ -116,9 +108,6 @@ jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
needs: [deps, lint, test]
if: startsWith(github.ref, 'refs/tags/v')
steps:
Expand Down Expand Up @@ -195,9 +184,6 @@ jobs:
publish-github:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
needs: [deps, lint, test, configure, build]
if: startsWith(github.ref, 'refs/tags/v')
env:
Expand Down Expand Up @@ -289,9 +275,6 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
env:
VERSION: ${{ needs.configure.outputs.version }}
defaults:
run:
shell: bash
steps:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@cd7c1eba155dc11d77aa3e3e4013836ad96a6894
Expand Down

0 comments on commit 4caaea7

Please sign in to comment.