Skip to content

Commit

Permalink
update repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita committed May 18, 2024
1 parent 46072c0 commit cc43ff8
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.

- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Build
run: go build -v ./...

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

test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.

- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Test
run: go test --race -coverpkg=./... -coverprofile=coverage.out ./...

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# WTF!? Sort

[![Go Reference](https://pkg.go.dev/badge/github.com/nar10z/wtfsort.svg)](https://pkg.go.dev/github.com/nar10z/wtfsort)
[![Go Report Card](https://goreportcard.com/badge/github.com/nar10z/wtfsort)](https://goreportcard.com/report/github.com/nar10z/wtfsort)


A fun collection of sorting algorithms

<img alt="Logo" height="300" src="./logo.png" title="Logo"/>
Expand Down

0 comments on commit cc43ff8

Please sign in to comment.