Select log file in convert-exported-logs #321
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build-tool: | |
name: 'Build and Compile the Tool' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Setup Go into the Go module directory | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.x | |
- name: Build | |
run: go build | |
- name: Test | |
run: go test . ./internal/... ./subcmd/... | |
diff: | |
name: 'Compare Site' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: 'Check out target branch (commit)' | |
uses: 'actions/checkout@v2' | |
with: | |
# FIXME: 全部取るのはやりすぎ。必要最小限(mereg-base origin/master | |
# HEAD)までだけ取れたら良いのだが… | |
fetch-depth: 0 | |
- name: 'Preparations' | |
run: | | |
# origin/master の ref が比較のために要る | |
git fetch origin master | |
# log-data の取得と展開 | |
make logdata | |
# 出力用のディレクトリ | |
mkdir -p tmp | |
- name: 'Compare site' | |
run: | | |
./scripts/site_diff.sh -o tmp/site.diff | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: diffs-${{ github.run_id }} | |
path: tmp/site.diff | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: log-site-diff-${{ github.run_id }} | |
path: tmp/site_diff/*.log |