Skip to content

Commit

Permalink
Merge pull request #5 from terrastruct/ciupdate-b989
Browse files Browse the repository at this point in the history
ci: Updates
  • Loading branch information
nhooyr authored Dec 19, 2022
2 parents 3cc8671 + 35b1efb commit 49b4edf
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 11 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: daily
on:
workflow_dispatch:
schedule:
- cron: '42 0 * * *' # daily at 00:42
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: ./go.mod
cache: true
- run: COLOR=1 CI_FORCE=1 ./make.sh
env:
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
node_modules
build
dist
d2-playground
8 changes: 0 additions & 8 deletions Makefile

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
</h2>

[![ci](https://github.com/terrastruct/d2/actions/workflows/ci.yml/badge.svg)](https://github.com/terrastruct/d2-playground/actions/workflows/ci.yml)
[![daily](https://github.com/terrastruct/d2/actions/workflows/daily.yml/badge.svg)](https://github.com/terrastruct/d2-playground/actions/workflows/daily.yml)
[![discord](https://img.shields.io/discord/1039184639652265985?label=discord)](https://discord.gg/NF6X8K4eDq)
[![twitter](https://img.shields.io/twitter/follow/terrastruct?style=social)](https://twitter.com/terrastruct)
[![license](https://img.shields.io/github/license/terrastruct/d2-playground?color=9cf)](./LICENSE.txt)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module play.d2lang.com
module oss.terrastruct.com/d2-playground

go 1.18

Expand Down
8 changes: 6 additions & 2 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ if [ ! -e "$(dirname "$0")/ci/sub/.git" ]; then
set +x
fi
. "$(dirname "$0")/ci/sub/lib.sh"
PATH="$(cd -- "$(dirname "$0")" && pwd)/ci/sub/bin:$PATH"
cd "$(dirname "$0")"

_make "$@"
job_parseflags "$@"
runjob fmt ./ci/sub/bin/fmt.sh &
runjob lint ci_go_lint &
runjob build 'go build ./...' &
runjob test 'go test ./...' &
ci_waitjobs

0 comments on commit 49b4edf

Please sign in to comment.