catppuccin-palette/.github/workflows/test.yml
uncenter 88e2795c5d
feat: add support for apple color list / .clr files (#87)
* feat: add support for apple color list / .clr files

* style: format with swift-format

* refactor: minor changes

* refactor: simplify `hexToRGBA`

* fix: use `red` not `calibratedRed` parameter for NSColor

* refactor: clean up arg handling

* ci(release-please): use macos runner, setup swift

* fix: import Buffer type

* fix: require `COMPILE_APPLE_COLOR_LIST=1`

* ci(test): switch to macos & build everything

* ci: upload palettes as artifact

* Update .github/workflows/test.yml

Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com>

---------

Co-authored-by: sgoudham <sgoudham@gmail.com>
Co-authored-by: Hammy <58985301+sgoudham@users.noreply.github.com>
2024-09-08 16:40:44 +01:00

45 lines
820 B
YAML

name: Lint & Test
on:
push:
branches: [main]
pull_request:
jobs:
main:
name: Lint and test
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: nekowinston/setup-deno@v1
- uses: swift-actions/setup-swift@v2
with:
swift-version: "5"
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Check
run: deno check **/*.ts
- name: Lint
run: deno lint --compact
- name: Test
run: deno test --doc
- name: Build
run: deno task build
env:
COMPILE_APPLE_COLOR_LIST: 1
- name: Upload Built Palette Formats
uses: actions/upload-artifact@v4
with:
name: "Catppuccin Palette Formats"
path: dist/palettes