Compare commits
2 Commits
32d472a606
...
531a02a6e1
| Author | SHA1 | Date | |
|---|---|---|---|
|
531a02a6e1
|
|||
|
f3f2c61da0
|
@@ -36,11 +36,19 @@ jobs:
|
||||
continue-on-error: true
|
||||
run: deno task test
|
||||
|
||||
- name: Compile
|
||||
id: compile
|
||||
continue-on-error: true
|
||||
run: |
|
||||
deno task build:amd64
|
||||
deno task build:arm64
|
||||
|
||||
- name: Fail if any step failed
|
||||
if: |
|
||||
steps.format.outcome != 'success' ||
|
||||
steps.lint.outcome != 'success' ||
|
||||
steps.test.outcome != 'success'
|
||||
steps.test.outcome != 'success' ||
|
||||
steps.compile.outcome != 'success'
|
||||
run: |
|
||||
echo "::error::One or more steps failed"
|
||||
exit 1
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
"test": "deno test -A --coverage **/__tests__/*.test.ts",
|
||||
"fmt": "deno fmt --check",
|
||||
"lint": "deno lint",
|
||||
"ci": "deno task fmt && deno task lint && deno task test", // For local CI checks
|
||||
"build:amd64": "deno compile --target x86_64-unknown-linux-gnu --include VERSION --include src/i18n/de.json --include src/i18n/en.json --allow-env --allow-write --allow-read --output dist/systemd-timer-linux-amd64 src/mod.ts",
|
||||
"build:arm64": "deno compile --target aarch64-unknown-linux-gnu --include VERSION --include src/i18n/de.json --include src/i18n/en.json --allow-env --allow-write --allow-read --output dist/systemd-timer-linux-arm64 src/mod.ts"
|
||||
"ci": "deno task fmt && deno task lint && deno task test && build:amd64", // For local CI checks
|
||||
"build:amd64": "deno compile --target x86_64-unknown-linux-gnu --include VERSION --include src/i18n/de.jsonc --include src/i18n/en.jsonc --allow-env --allow-write --allow-read --output dist/systemd-timer-linux-amd64 src/mod.ts",
|
||||
"build:arm64": "deno compile --target aarch64-unknown-linux-gnu --include VERSION --include src/i18n/de.jsonc --include src/i18n/en.jsonc --allow-env --allow-write --allow-read --output dist/systemd-timer-linux-arm64 src/mod.ts"
|
||||
},
|
||||
"compilerOptions": {},
|
||||
"fmt": {
|
||||
|
||||
Reference in New Issue
Block a user