Skip to content

Commit

Permalink
Merge pull request #6 from pathwar/dev/moul/ci
Browse files Browse the repository at this point in the history
feat: test on CI
  • Loading branch information
moul authored Jul 16, 2020
2 parents a9e59ff + 027e434 commit 64c6666
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/challenge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Challenge
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container: docker/compose:1.24.1
steps:
- name: checkout
uses: actions/checkout@v2
- name: install deps
run: apk add --no-cache make git
- name: build challenges
run: make docker.build
31 changes: 31 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
PREFIX ?= pathwar/
PATHWAR_OPTS ?=

.PHONY: pathwar.run
pathwar.run:
pathwar $(PATHWAR_OPTS) compose prepare --no-push ./ > pathwar-compose.yml
pathwar $(PATHWAR_OPTS) compose up --force-recreate pathwar-compose.yml

.PHONY: pathwar.down
pathwar.down:
pathwar --debug compose down $(notdir $(PWD))

.PHONY: pathwar.ps
pathwar.ps:
pathwar compose ps | grep $(notdir $(PWD))

.PHONY: docker.build
docker.build:
docker-compose build --pull

.PHONY: pathwar-prepare
pathwar.prepare:
pathwar $(PATHWAR_OPTS) compose prepare --prefix=$(PREFIX) --no-push .

.PHONY: pathwar-push
pathwar.push:
pathwar $(PATHWAR_OPTS) compose prepare --prefix=$(PREFIX) .

.PHONY: make.bump
make.bump:
wget -O rules.mk https://github.com/raw/tree/master/challenges/challenge.mk Makefile

0 comments on commit 64c6666

Please sign in to comment.