Go build cannot find the tidb-server directory #99
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: | |
push: | |
branches: | |
- master | |
- ci-test | |
pull_request: | |
branches: | |
- master | |
release: | |
types: | |
- created | |
jobs: | |
debug: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Print context | |
run: | | |
echo "github.ref: ${{ github.ref }}" | |
echo "github.event_name : ${{ github.event_name }}" | |
test: | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
node: [10, 12, 14] | |
exclude: | |
- os: windows-latest | |
node: 10 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: npm install | |
- name: Test on Linux | |
if: runner.os == 'Linux' | |
run: xvfb-run -a npm test | |
- name: Test on macOS, Windows | |
if: runner.os != 'Linux' | |
run: npm test | |
publish: | |
needs: | |
- test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: Install dependencies | |
run: npm install | |
- name: Publish | |
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v') | |
run: npm run deploy | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} |