Skip to content

Commit

Permalink
ci: Remove artifact steps
Browse files Browse the repository at this point in the history
  • Loading branch information
motss committed Mar 26, 2020
1 parent bdd34cb commit e4fb8f6
Showing 1 changed file with 2 additions and 98 deletions.
100 changes: 2 additions & 98 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Setup node@${{ matrix.os }}
- name: Setup node@${{ matrix.target }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.target }}
Expand Down Expand Up @@ -46,105 +46,9 @@ jobs:
- name: Check build
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
pwd && ls -la
else
pwd && ls
fi
- name: Upload build artifact
uses: actions/upload-artifact@v1
with:
name: build-${{ matrix.os }}-${{ matrix.target }}
path: dist

test:
name: Test ${{ matrix.os }} ${{ matrix.target }}
needs: build
runs-on: ${{ matrix.os }}
timeout-minutes: 120
strategy:
matrix:
os: [macos-latest, ubuntu-18.04, windows-2019]
target: [13.x]

steps:
- name: Setup node@${{ matrix.os }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.target }}

- name: Download build artifact
uses: actions/download-artifact@v1
with:
name: build-${{ matrix.os }}-${{ matrix.target }}

- name: List versions
run: |
pwd && ls -la && node -v && npm -v && which npm
- name: Install dependencies
run: |
npm ci --quiet
pwd && ls -la
- name: Run Test
run: |
npm run test:dev
# test:
# name: ${{ matrix.os }} ${{ matrix.target }}
# runs-on: ${{ matrix.os }}
# timeout-minutes: 120
# strategy:
# matrix:

# include:
# - os: macos-latest
# target: x86_64-apple-darwin
# - os: ubuntu-18.04
# target: x86_64-unknown-linux-gnu
# - os: windows-2019
# target: x86_64-pc-windows-msvc

# steps:
# - name: Config git
# run: git config --global core.symlinks true

# - name: Checkout
# uses: actions/checkout@v2

# - name: Cache cargo registry
# uses: actions/cache@v1
# with:
# path: ~/.cargo/registry
# key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}

# - name: Cache cargo index
# uses: actions/cache@v1
# with:
# path: ~/.cargo/git
# key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}

# - name: Cache cargo build
# uses: actions/cache@v1
# with:
# path: target
# key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}

# - name: List versions
# run: |
# pwd && cargo -V && rustc -V
# - name: Run cargo check
# run: |
# cargo check
# - name: Run cargo fmt
# run: |
# cargo fmt --all -- --check
# - name: Run cargo clippy
# run: |
# cargo clippy --all-targets --locked --target ${{ matrix.target }} -- -D clippy::all
# # cargo clippy --all-targets --locked --target ${{ matrix.target }}

# - name: Run cargo test
# run: |
# cargo test -vv --all-targets --locked --target ${{ matrix.target }}

0 comments on commit e4fb8f6

Please sign in to comment.