mirror of
https://github.com/maputnik/editor.git
synced 2026-01-20 12:20:03 +00:00
Merge pull request #12 from pathmapper/gh-actions
Replace Travis with Github Actions
This commit is contained in:
61
.github/workflows/go.yml
vendored
Normal file
61
.github/workflows/go.yml
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
name: go
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GOPATH: ${{ github.workspace }}
|
||||
GO111MODULE: off
|
||||
steps:
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ^1.14.x
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: ./src/github.com/maputnik/desktop/
|
||||
|
||||
- name: Get style
|
||||
run: wget https://maputnik.github.io/osm-liberty/style.json
|
||||
|
||||
- name: Make
|
||||
run: cd src/github.com/maputnik/desktop/ && make
|
||||
|
||||
- name: Test --help
|
||||
run: ./src/github.com/maputnik/desktop/bin/linux/maputnik --help
|
||||
|
||||
- name: Test --version
|
||||
run: ./src/github.com/maputnik/desktop/bin/linux/maputnik --version
|
||||
|
||||
- name: Test --watch
|
||||
run: ./src/github.com/maputnik/desktop/bin/linux/maputnik --watch --file style.json & sleep 5; kill $!
|
||||
|
||||
- name: Artifacts/linux
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: maputnik-linux
|
||||
path: ./src/github.com/maputnik/desktop/bin/linux/
|
||||
|
||||
- name: Artifacts/darwin
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: maputnik-darwin
|
||||
path: ./src/github.com/maputnik/desktop/bin/darwin/
|
||||
|
||||
- name: Artifacts/windows
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: maputnik-windows
|
||||
path: ./src/github.com/maputnik/desktop/bin/windows/
|
||||
16
.travis.yml
16
.travis.yml
@@ -1,16 +0,0 @@
|
||||
os:
|
||||
- linux
|
||||
language: go
|
||||
go:
|
||||
- 1.14.x
|
||||
addons:
|
||||
artifacts:
|
||||
paths:
|
||||
- bin
|
||||
install:
|
||||
- wget https://maputnik.github.io/osm-liberty/style.json
|
||||
script:
|
||||
- make
|
||||
- ./bin/linux/maputnik --help
|
||||
- ./bin/linux/maputnik --version
|
||||
- ./bin/linux/maputnik --watch --file style.json & sleep 5; kill $!
|
||||
@@ -1,4 +1,4 @@
|
||||
# Maputnik Desktop [](https://travis-ci.org/maputnik/desktop)
|
||||
# Maputnik Desktop [](https://github.com/maputnik/desktop/actions?query=workflow%3Ago)
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user