Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from Travis.org to GH actions #242

Closed
mdelapenya opened this issue Sep 16, 2020 · 3 comments
Closed

Migrate from Travis.org to GH actions #242

mdelapenya opened this issue Sep 16, 2020 · 3 comments

Comments

@mdelapenya
Copy link
Collaborator

How does this affect us? https://docs.travis-ci.com/user/migrate/open-source-repository-migration

@gianarb
Copy link
Collaborator

gianarb commented Sep 16, 2020

I am slowly moving my project to GitHub action, so I am happy to see this happening if somebody has the bandwidth to do it

@Bablzz
Copy link
Contributor

Bablzz commented Oct 6, 2020

I did small yaml with actions
Maybe it will help you

name: Go

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  shellcheck:
    runs-on: [ubuntu-latest]
    steps:

    - uses: actions/checkout@v2
    - name: Run ShellCheck
      uses: ludeeus/action-shellcheck@master
      with:
        scandir: ./scripts
        ignore: testresources
    
    - name: Run gofmt
      run: |
        ./scripts/checks.sh
  test_ubuntu:
    strategy:
      matrix:
        go-version: [1.14.x, 1.15.x, 1.x]
        platform: [ubuntu-latest]
    runs-on: ${{ matrix.platform }}
    steps:

    - name: Set up Go 1.x
      uses: actions/setup-go@v2
      with:
        go-version: ${{ matrix.go-version }}
      id: go

    - name: Check out code into the Go module directory
      uses: actions/checkout@v2

    - name: Get dependencies
      run: |
        go get -v -t -d ./...
        go get gotest.tools/gotestsum
    
    - name: modVerify
      run: go mod verify
      
    - name: modTidy
      run: go mod tidy

    - name: vet
      run: go vet ./...

    - name: gotestsum
      run: gotestsum --format short-verbose ./...

    - name: Test
      run: go test -v ./...

Bablzz added a commit to Bablzz/testcontainers-go that referenced this issue Oct 8, 2020
gianarb added a commit that referenced this issue Oct 8, 2020
This was referenced Mar 12, 2021
@mdelapenya
Copy link
Collaborator Author

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants