Skip to content

Commit

Permalink
Update GitHub Actions workflows
Browse files Browse the repository at this point in the history
This commit updates the GitHub Actions workflows for pull requests and releases. It includes changes to the steps for checking out the repository, setting up the Node.js environment, installing dependencies, building the project, and running the test suite. The changes ensure that the workflows are up to date and aligned with best practices.
  • Loading branch information
RajVarsani committed Dec 23, 2023
1 parent 4433a27 commit 5aa5843
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- name: Checkout Repository
uses: actions/checkout@v3
with:
bun-version: latest
- run: bun i
- run: bun run build
- run: bun run test
fetch-depth: 0
- name: Setup Node.js Environment
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install Dependencies
run: npm i
- name: Build Project
run: npm run build
- name: Run Test Suite
run: npm run test
- name: Upload Code Coverage
uses: codecov/codecov-action@v3.1.0
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Release

on:
push:
branches:
Expand All @@ -10,24 +11,24 @@ on:

jobs:
release:
name: Release
name: Release to NPM
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
- name: Setup Node.js Environment
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install dependencies
- name: Install Dependencies
run: npm i
- name: Build
- name: Build Project
run: npm run build
- name: Test
run: npm test
- name: Release
- name: Run Test Suite
run: npm run test
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit 5aa5843

Please sign in to comment.