Skip to content

Workflow file for this run

on:
pull_request:
workflow_dispatch:
env:
CLICOLOR_FORCE: 1
GITHUB_TOKEN: ${{github.token}}
PKGX_PANTRY_PATH: ${{github.workspace}}/fixtures
jobs:
integration-test-1:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
env:
PKGX_PANTRY_PATH: ${{github.workspace}}/fixtures
CLICOLOR_FORCE: 1
GITHUB_TOKEN: ${{github.token}}
steps:
- uses: actions/checkout@v4
- uses: pkgxdev/setup@v2
- run: pkgx --sync #FIXME bug where shebangs don’t cause an auto-sync
- run: bin/build stark.pkg
- run: bin/test stark.pkg
local-edit-tests:
runs-on: ubuntu-latest
env:
PKGX_PANTRY_PATH: ${{github.workspace}}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pkgxdev/setup@v2
- run: git remote -v; git branch -r
- run: pkgx --sync #FIXME bug where shebangs don’t cause an auto-sync
- name: prep
run: |
echo '${{github.workspace}}/bin' >> $GITHUB_PATH
mv fixtures/projects .
- run: '! status'
- run: cp modified.pkg/package.yml stark.pkg/package.yml
working-directory: projects
- run: test $(status) = stark.pkg
- run: build
- run: test
- run: test $(pkgx +stark.pkg -- stark) = not_much_u
unit-tests:
runs-on: ubuntu-latest
env:
PKGX_PANTRY_PATH: null
steps:
- uses: actions/checkout@v4
- uses: pkgxdev/dev@main
- run: deno test --allow-env --allow-net