mirror of
https://gitea.catppuccin.com/catppuccin/palette
synced 2024-12-17 20:24:34 +00:00
88e2795c5d
* 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>
45 lines
820 B
YAML
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
|