mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-03 15:27:57 +08:00
for some reason `-e` gets interpreted literally at CI. This removes its use making the output look the same everywhere. CI will now show diff if uncommited changes to make it easier to see what caused CI to fail.
22 lines
673 B
YAML
22 lines
673 B
YAML
name: Build
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
no-uncommitted-changes:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
ref: ${{ github.head_ref }}
|
|
- name: Run Build
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '12.x'
|
|
- run: npm run build
|
|
- name: Check working tree
|
|
id: changes
|
|
uses: UnicornGlobal/has-changes-action@v1.0.11
|
|
- name: Check for uncommited changes
|
|
if: steps.changes.outputs.changed == 1
|
|
run: git status && git --no-pager diff --patch-with-raw && echo "Output does not match src/, uncommitted changes exist, follow build instructions from README" && exit 1
|