Skip to content

Commit

Permalink
feat(actions): inital setup to execute the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneM committed Jul 21, 2022
1 parent e5e530e commit 8b2f3ac
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ updates:
interval: "monthly"
reviewers:
- "EtienneM"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
reviewers:
- "EtienneM"
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish

on:
push:

jobs:
publish:
runs-on: ubuntu-latest
env:
GOX_ARCHITECTURES: amd64 386
steps:
# Currently there is no possibility to get a tag name. Hence we filter the GITHUB_REF variable which contains something like "refs/tags/v2.0.0" if the tag is "v2.0.0". The value can be used with "steps.tag_name.outputs.TAG_NAME"
- name: Get tag name
if: startsWith(github.ref, 'refs/tags/')
id: tag_name
run: |
echo "::set-output name=TAG_NAME::${GITHUB_REF#refs/tags/}"
echo "$TAG_NAME"
- name: Checkout the code
uses: actions/checkout@v3

- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version-file: "go.mod"
check-latest: true
- run: go version

- name: Execute the tests
run: go test -race -p=1 ./...
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Scalingo-CLI v1.23.0

[![Codeship Status for Scalingo/cli](https://app.codeship.com/projects/d3ee7f70-ac5f-0137-8f24-1ae29f023aca/status?branch=master)](https://app.codeship.com/projects/362207)
![publish workflow](https://github.com/Scalingo/cli/actions/workflows/publish.yml/badge.svg)

This repository contains the command line utility for the public PaaS Scalingo.

Expand Down

0 comments on commit 8b2f3ac

Please sign in to comment.