Skip to content

Commit

Permalink
chore: attempt to fix cd -2
Browse files Browse the repository at this point in the history
  • Loading branch information
cusspvz committed Oct 23, 2023
1 parent 4cbb2bc commit 542c863
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 31 deletions.
28 changes: 0 additions & 28 deletions .github/actions/setup.yml

This file was deleted.

19 changes: 18 additions & 1 deletion .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,27 @@ jobs:
name: Test on Node ${{ matrix.node }} # @TODO: add multiple ORM versions?
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: yarn install --frozen-lockfile

- name: Cache dependencies
id: yarn-cache
uses: actions/cache@v3
with:
path: |
**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn install --frozen-lockfile
shell: bash

- run: yarn lint
- run: yarn build
- run: yarn test
24 changes: 22 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,28 @@ jobs:
id: extract_version
uses: Saionaro/[email protected]

- name: Setup
uses: ./.github/actions/setup.yml
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/Htdrogen'
registry-url: https://npm.pkg.github.com/
scope: '@abmf'

- name: Cache dependencies
id: yarn-cache
uses: actions/cache@v3
with:
path: |
**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn install --frozen-lockfile
shell: bash

- name: Print version
run: echo ${{ steps.extract_version.outputs.version }}
Expand Down

0 comments on commit 542c863

Please sign in to comment.