diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml deleted file mode 100644 index fb98c79..0000000 --- a/.github/actions/setup/action.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Setup -description: Setup Node.js and install dependencies - -runs: - using: composite - steps: - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version-file: .nvmrc - - - name: Cache dependencies - id: yarn-cache - uses: actions/cache@v3 - with: - path: | - **/node_modules - .yarn/install-state.gz - key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }} - restore-keys: | - ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} - ${{ runner.os }}-yarn- - - - name: Install dependencies - if: steps.yarn-cache.outputs.cache-hit != 'true' - run: yarn install --immutable - shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7912c0..ac28434 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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 @@ -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