An open API service indexing awesome lists of open source software.

https://github.com/csmith/github-workflows

Common workflows for GitHub actions
https://github.com/csmith/github-workflows

Last synced: 5 months ago
JSON representation

Common workflows for GitHub actions

Awesome Lists containing this project

README

          

# Common GitHub Workflows

This repo contains some GitHub workflows I use in my projects.

## build-image.yml

Builds a container image using buildah and pushes it to the GitHub container
registry. Example usage:

```yaml
name: build image
on:
push:
branches:
- master
tags:
- v*
jobs:
build:
uses: csmith/github-workflows/.github/workflows/build-image.yml@master
secrets: inherit
```

## container-test.yml

Builds a container image using buildah, without pushing it anywhere.
Example usage:

```yaml
name: check container build
on:
pull_request:
jobs:
build:
uses: csmith/github-workflows/.github/workflows/container-test.yml@master
```

## go-build.yml

Installs the current stable version of Go and builds a package.
Example usage:

```yaml
name: build go project
on:
push:
branches:
- master
pull_request:
jobs:
build:
uses: csmith/github-workflows/.github/workflows/go-build.yml@master
```

## go-test.yml

Installs the current stable version of Go and runs all tests in a package.
Example usage:

```yaml
name: run go tests
on:
push:
branches:
- master
pull_request:
jobs:
build:
uses: csmith/github-workflows/.github/workflows/go-test.yml@master
```

## go-vulncheck.yml

Installs the latest version of [`govulncheck`](https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck)
and runs it on a package. Example usage:

```yaml
name: check for go vulnerabilities
on:
push:
branches:
- master
pull_request:
jobs:
build:
uses: csmith/github-workflows/.github/workflows/go-vulncheck.yml@master
```