Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
erhant committed Jan 3, 2024
1 parent 25d75e7 commit 034d940
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 206 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/build.yml

This file was deleted.

36 changes: 30 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,39 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-node@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
node-version: 20

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false # use caching via later commands

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: Build package
run: pnpm build

- run: yarn
- run: yarn build
- uses: JS-DevTools/npm-publish@v3
id: publish
with:
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/test-tmp.yml

This file was deleted.

37 changes: 23 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,43 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 19.x
node-version: 20

- name: Start Redis
uses: supercharge/redis-github-action@1.5.0
with:
redis-version: 7
redis-port: 6379

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Restore yarn cache
uses: actions/cache@v3
id: yarn-cache
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: yarn
run: pnpm install

- name: Build package
run: pnpm build

- name: Run tests
run: yarn test
run: pnpm test
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<p align="center">
<a href="https://opensource.org/licenses/MIT" target="_blank">
<img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-yellow.svg">
<img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-7CB9E8.svg">
</a>
<a href="https://www.npmjs.com/package/hollowdb" target="_blank">
<img alt="NPM" src="https://img.shields.io/npm/v/hollowdb?logo=npm&color=CB3837">
Expand All @@ -24,9 +24,6 @@
<a href="./.github/workflows/test.yml" target="_blank">
<img alt="Workflow: Tests" src="https://github.com/firstbatchxyz/hollowdb/actions/workflows/test.yml/badge.svg?branch=master">
</a>
<a href="./.github/workflows/build.yml" target="_blank">
<img alt="Workflow: Build" src="https://github.com/firstbatchxyz/hollowdb/actions/workflows/build.yml/badge.svg?branch=master">
</a>
<a href="https://discord.gg/2wuU9ym6fq" target="_blank">
<img alt="Discord" src="https://dcbadge.vercel.app/api/server/2wuU9ym6fq?style=flat">
</a>
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,24 +75,24 @@
"warp-contracts-redis": "^0.3.4"
},
"devDependencies": {
"@parcel/packager-ts": "^2.9.2",
"@parcel/transformer-typescript-tsc": "^2.9.2",
"@parcel/transformer-typescript-types": "^2.9.2",
"@parcel/config-default": "^2.10.3",
"@parcel/packager-ts": "^2.10.3",
"@parcel/transformer-typescript-tsc": "^2.10.3",
"@parcel/transformer-typescript-types": "^2.10.3",
"@types/jest": "^29.4.0",
"@types/node": "^14.11.2",
"@types/yargs": "^17.0.24",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.11.0",
"arlocal": "^1.1.62",
"arlocal": "1.1.62",
"arweave": "^1.13.0",
"copyfiles": "^2.4.1",
"esbuild": "^0.16.4",
"eslint": "^8.48.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.4.3",
"parcel": "^2.9.2",
"parcel": "^2.10.3",
"prettier": "2.8.3",
"replace-in-file": "^6.3.5",
"rimraf": "^4.1.2",
Expand Down
Loading

0 comments on commit 034d940

Please sign in to comment.