fix github actions 2 #3
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: Nodejs14 base ci | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
ci: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 3 | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install dependencies | |
run: | | |
sudo apt-get update && apt-get install -y wget curl | |
brew install wget | |
choco install -y wget | |
choco install -y curl | |
- name: install s | |
run: | | |
npm i @xsahxl/[email protected] -g | |
- name: config s | |
run: | | |
s3 config add --AccessKeyID ${{secrets.ACCESSKEYID}} --AccessKeySecret ${{secrets.ACCESSKEYSECRET}} -a quanxi -f | |
- name: NPM install | |
run: | | |
npm install | |
- name: NPM run build | |
run: | | |
npm run build | |
- name: run base ci | |
run: | | |
export RANDSTR=github_14 && cd __tests__/e2e && ./ci.sh && cd - |