The Wayback Machine - http://web.archive.org/web/20211205013625/https://github.com/github/hub/commit/d429ec23d71d7d81b4b537477eedf24445207a24
Skip to content
Permalink
Browse files
indent 💅
  • Loading branch information
mislav committed Apr 13, 2020
1 parent c5e5d3f commit d429ec23d71d7d81b4b537477eedf24445207a24
Showing with 52 additions and 52 deletions.
  1. +34 −34 .github/workflows/ci.yml
  2. +17 −17 .github/workflows/release.yml
  3. +1 −1 Dockerfile
@@ -8,39 +8,39 @@ jobs:
strategy:
fail-fast: false
matrix:
go: [ '1.11', '1.12', '1.13', '1.14' ]
go: ["1.11", "1.12", "1.13", "1.14"]

steps:
- uses: actions/checkout@v1

- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x

- name: Cache gems
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Bundle install
run: |
bundle install --path vendor/bundle
bundle binstub cucumber --path bin
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}

# - name: Install system packages
# if: runner.os == 'Linux'
# run: sudo apt-get install -y zsh fish

- name: Run tests
run: make test-all
env:
CI: true
- uses: actions/checkout@v1

- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x

- name: Cache gems
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Bundle install
run: |
bundle install --path vendor/bundle
bundle binstub cucumber --path bin
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}

# - name: Install system packages
# if: runner.os == 'Linux'
# run: sudo apt-get install -y zsh fish

- name: Run tests
run: make test-all
env:
CI: true
@@ -1,30 +1,30 @@
name: Release
on:
push:
tags: 'v*'
tags: "v*"

jobs:
release:
name: Publish release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: "1.13"
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: "1.13"

- name: Publish release script
run: script/publish-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish release script
run: script/publish-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: mislav/bump-homebrew-formula-action@v1
if: "!contains(github.ref, '-')" # skip prereleases
with:
formula-name: hub
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: mislav/bump-homebrew-formula-action@v1
if: "!contains(github.ref, '-')" # skip prereleases
with:
formula-name: hub
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -6,7 +6,7 @@ RUN apt-get purge --auto-remove -y curl \
&& rm -rf /var/lib/apt/lists/*

RUN groupadd -r app && useradd -r -g app -G sudo app \
&& mkdir -p /home/app && chown -R app:app /home/app
&& mkdir -p /home/app && chown -R app:app /home/app
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

USER app

0 comments on commit d429ec2

Please sign in to comment.