This commit is contained in:
Opportunity
2020-07-07 21:53:34 +08:00
Unverified
parent 70a1af86e5
commit bff8013f3d
18 changed files with 200 additions and 181 deletions
+22 -22
View File
@@ -1,28 +1,28 @@
name: checkin
on:
- push
- pull_request
- push
- pull_request
jobs:
checkin:
runs-on: ubuntu-latest
checkin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install
run: yarn install
- name: build
run: yarn build
- name: test
run: yarn test
- name: release
run: yarn release
- name: "check for uncommitted changes"
# Ensure no changes
run: |
git add .
if ! git diff --cached --color=always --exit-code -- . ':!node_modules'; then
echo "::error::Found changed files after build. Please run 'yarn release' and check in all changes."
exit 1
fi
steps:
- uses: actions/checkout@v1
- name: install
run: yarn install
- name: build
run: yarn build
- name: test
run: yarn test
- name: release
run: yarn release
- name: 'check for uncommitted changes'
# Ensure no changes
run: |
git add .
if ! git diff --cached --color=always --exit-code -- . ':!node_modules'; then
echo "::error::Found changed files after build. Please run 'yarn release' and check in all changes."
exit 1
fi
+17 -17
View File
@@ -1,24 +1,24 @@
name: test
on:
- push
- push
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
version: [latest, branch@master]
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
version: [latest, branch@master]
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: xmake-io/github-action-setup-xmake@master
with:
xmake-version: ${{ matrix.version }}
- name: Run tests
run: |
xmake create -P test
xmake build -P test
xmake run -P test
steps:
- uses: actions/checkout@v1
- uses: xmake-io/github-action-setup-xmake@master
with:
xmake-version: ${{ matrix.version }}
- name: Run tests
run: |
xmake create -P test
xmake build -P test
xmake run -P test