Skip to content

Commit

Permalink
fix(ci): πŸ› πŸ‘· consolidate ci into one file
Browse files Browse the repository at this point in the history
  • Loading branch information
Evert De Spiegeleer committed Jan 7, 2024
1 parent 2496ea8 commit ee3341d
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 64 deletions.
56 changes: 0 additions & 56 deletions .github/workflows/audit.yml

This file was deleted.

59 changes: 52 additions & 7 deletions .github/workflows/release.yml β†’ .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,63 @@
name: release
name: push

on:
push:
branches:
- main
pull_request:
branches:
pull_request:
branches:
- main

jobs:
audit:
uses: ./.github/workflows/audit.yml
name: audit

build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

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

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: ./dist

test:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v3

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

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Test
run: yarn test

- name: Test Report
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: test-report.xml
if: always()

pr-prerelease:
if: github.event_name == 'pull_request' && github.event.action != 'closed'
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"description": "An opinionated, type-safe http library build around Express and Zod",
"main": "./dist/main.js",
"types": "./dist/main.d.ts",
"files": ["./dist"],
"files": [
"./dist",
"./readme.md"
],
"type": "module",
"author": "Evert De Spiegeleer",
"license": "MIT",
Expand Down

0 comments on commit ee3341d

Please sign in to comment.