Skip to content

Commit

Permalink
RM go.yml and add main.yaml workflows (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergerad authored Jan 5, 2025
1 parent 7ed522b commit a390d99
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/go.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build docker image, tag and push

on:
push:
branches:
- main
workflow_dispatch:

permissions: # see this: https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
id-token: write # This is required for requesting the JWT
contents: write # This is required for actions/checkout

jobs:
dev_docker_build_push:
if: ${{ github.ref == 'refs/heads/main' }}
uses: immutable/im-shared-github-actions/.github/workflows/[email protected]
with:
environment: dev
dockerfile: "Dockerfile"
role-to-assume: "arn:aws:iam::783421985614:role/immutable-nonprod-docker-image-push"
role-session-name: "go-ethereum-immutable-nonprod-docker-image-push"
aws-region: "us-east-2"
go-mod-cache-path: "~/go/pkg/mod"
go-build-cache-path: "~/.cache/go-build"
secrets:
github-token: ${{ secrets.PLATFORM_SA_GITHUB_TOKEN }}

tests:
name: Tests
runs-on: ubuntu-20-04-4-cores
timeout-minutes: 35
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: 1.20.x
- name: Cache modules
uses: ./.github/actions/cache/golang
- name: All Tests
shell: bash
run: |
go run build/ci.go install
go test $(go list ./... | grep -v 'go-ethereum/tests/immutable') -p 1 --parallel 4 -timeout=30m

0 comments on commit a390d99

Please sign in to comment.