From 11d52ba768599f3c27a84ae4bc5e9d954a829214 Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Tue, 31 Mar 2020 19:00:51 +0800 Subject: [PATCH] fix test --- .github/workflows/test.yml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b75ef54..b7085ae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,26 +1,24 @@ name: test -on: -- push +on: + - push jobs: build: strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] + version: [latest, branch@master] runs-on: ${{ matrix.os }} - + steps: - - uses: actions/checkout@v1 - - uses: xmake-io/github-action-setup-xmake@master - with: - xmake-version: branch@master - - uses: xmake-io/github-action-setup-xmake@master - with: - xmake-version: latest - - name: Run tests - run: | - xmake create -P test - xmake build -P test - xmake run -P test + - 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