Skip to content

Commit

Permalink
fix: validation install (remove)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewuu committed Jul 17, 2023
1 parent 2ce1621 commit 847e480
Showing 1 changed file with 1 addition and 55 deletions.
56 changes: 1 addition & 55 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,64 +59,10 @@ jobs:
node_version: ${{ matrix.node }}
- name: Lint
run: npm run lint

build:
name: Build
uses: ./.github/workflows/_build.yml
install:
name: Install (Node.js v${{ matrix.node }} on ${{ matrix.os_name }})
runs-on: ${{ matrix.os }}
timeout-minutes: 30
needs: build
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node:
- '16'
- '18'
include:
- os: ubuntu-latest
os_name: Linux
- os: macos-latest
os_name: macOS
- os: windows-latest
os_name: Windows
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: ${{ needs.build.outputs.artifact_name }}
path: .
- name: Find packages
uses: tj-actions/glob@v16
id: packages
with:
files: '*.tgz'
- name: Create package.json
uses: DamianReeves/write-file-action@v1.2
with:
write-mode: overwrite
path: package.json
contents: |
{"type":"module"}
- name: Create index.js
uses: DamianReeves/write-file-action@v1.2
with:
write-mode: overwrite
path: index.js
contents: |
import 'react-ga-hooks'
- name: Install
run: npm install --save ${{ steps.packages.outputs.paths }}
- name: Run
run: node index.js

typecheck:
name: Typecheck (Node.js v${{ matrix.node }})
Expand Down

0 comments on commit 847e480

Please sign in to comment.