Skip to content

Commit

Permalink
Switch ci to use npm instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ThunbergOlle committed Apr 11, 2024
1 parent 00e5d62 commit 2a2dca0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 36 deletions.
27 changes: 0 additions & 27 deletions .github/actions/setup/action.yml

This file was deleted.

30 changes: 21 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ jobs:
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup
uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci

- name: Lint files
run: yarn lint
run: npm run lint

- name: Typecheck files
run: yarn typecheck
run: npm run typecheck

test:
runs-on: ubuntu-latest
Expand All @@ -30,10 +33,13 @@ jobs:
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup
uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci

- name: Run unit tests
run: yarn test --maxWorkers=2 --coverage
run: npm run test --maxWorkers=2 --coverage

build-library:
runs-on: ubuntu-latest
Expand All @@ -42,10 +48,13 @@ jobs:
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup
uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci

- name: Build package
run: yarn prepare
run: npm run prepare

build-web:
runs-on: ubuntu-latest
Expand All @@ -54,8 +63,11 @@ jobs:
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup
uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci

- name: Build example for Web
run: |
yarn example expo export:web
npm run example expo export:web

0 comments on commit 2a2dca0

Please sign in to comment.