Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
brynblack committed Jan 9, 2025
1 parent 87ed445 commit 1a0ab11
Showing 1 changed file with 0 additions and 93 deletions.
93 changes: 0 additions & 93 deletions .github/workflows/library-js-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,97 +4,4 @@ on:
workflow_call:

jobs:
# Lint the code
feature-lint:
name: "Feature / Lint"
runs-on: ubuntu-latest
permissions:
packages: read
contents: read
steps:
- uses: actions/checkout@v4
- uses: MatrixAI/.github/.github/actions/install-nix
- name: Run linting
run: |
nix develop .#ci --command bash -c $'
npm run lint
'

# Build the dist
feature-build:
name: "Feature / Build"
runs-on: ubuntu-latest
permissions:
packages: read
contents: read
actions: write
steps:
- uses: actions/checkout@v4
- uses: MatrixAI/.github/.github/actions/install-nix
- name: Run build
run: |
nix develop .#ci --command bash -c $'
npm run build --verbose
'
- name: Upload Build
uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist

# Test the dist
feature-test:
name: "Feature / Test"
runs-on: ubuntu-latest
permissions:
packages: read
contents: read
actions: write
checks: write
steps:
- uses: actions/checkout@v4
- uses: MatrixAI/.github/.github/actions/install-nix
- name: Run tests
run: |
nix develop .#ci --command bash -c $'
npm run test -- --ci --coverage
'
- name: Upload JUnit report
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: junit-report
path: tmp/junit/junit.xml
- name: Publish JUnit Report
uses: mikepenz/action-junit-report@v5
with:
report_paths: tmp/junit/junit.xml
- name: Upload Cobertura report
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: tmp/coverage/cobertura-coverage.xml

# Bench the dist
feature-bench:
name: "Feature / Bench"
runs-on: ubuntu-latest
permissions:
packages: read
contents: read
actions: write
steps:
- uses: actions/checkout@v4
- uses: MatrixAI/.github/.github/actions/install-nix
- name: Run bench
run: |
nix develop .#ci --command bash -c $'
npm run bench --if-present
'
- name: Upload Bench
uses: actions/upload-artifact@v4
with:
name: metrics-report
path: ./benches/results/metrics.txt
if-no-files-found: ignore

0 comments on commit 1a0ab11

Please sign in to comment.