Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: CI
on:
push:
pull_request:
schedule:
- cron: "0 0 * * 0"

jobs:
test:
name: Test
strategy:
matrix:
go-version:
- "1.15"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout/@v2

- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}

- name: Cache go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-mod-

- name: Install dependencies
run: go mod vendor -v

- name: Run go test
run: go test -ldflags "-s -w" -coverprofile coverage.txt -covermode atomic ./cmd/... ./pkg/...

- name: Check coverage.txt existence
id: check-coverage-file
if: ${{ always() }}
uses: andstor/file-existence-action@v1
with:
files: coverage.txt

- name: Upload coverage as artifacts
if: ${{ always() && steps.check-coverage-file.outputs.files_exists == 'true' }}
uses: actions/upload-artifact@v2
with:
name: coverage-${{ matrix.go-version }}
path: coverage.txt

- name: Upload coverage to Codecov
if: ${{ always() && steps.check-coverage-file.outputs.files_exists == 'true' }}
uses: codecov/codecov-action@v1
with:
name: coverage-${{ matrix.go-version }}
file: coverage.txt

vet:
name: Vet
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout/@v2

- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: "1.15"

- name: Cache go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-mod-

- name: Install dependencies
run: go mod vendor -v

- name: Run go vet
run: go vet -ldflags "-s -w" ./cmd/... ./pkg/...
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Factorio Item Browser - Export Icon Renderer
![Factorio Item Browser](https://raw.githubusercontent.com/factorio-item-browser/documentation/master/asset/image/logo.png)

# Export Icon Renderer

[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/factorio-item-browser/export-icon-renderer)](https://github.com/factorio-item-browser/export-icon-renderer/releases)
[![GitHub](https://img.shields.io/github/license/factorio-item-browser/export-icon-renderer)](LICENSE.md)
[![build](https://img.shields.io/github/workflow/status/factorio-item-browser/export-icon-renderer/CI?logo=github)](https://github.com/factorio-item-browser/export-icon-renderer/actions)
[![Codecov](https://img.shields.io/codecov/c/gh/factorio-item-browser/export-icon-renderer?logo=codecov)](https://codecov.io/gh/factorio-item-browser/export-icon-renderer)

This project implements the icon renderer of the export in Go for fast processing of the images as layers. The icon
renderer was first part of the exporter itself (i.e. PHP), but after discovering performance issues especially with
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/factorio-item-browser/export-icon-renderer

go 1.14
go 1.15

require (
github.com/anthonynsimon/bild v0.11.2-0.20200422162521-c58fb61a4c52
Expand Down