Skip to content

Commit

Permalink
redirect stderr only
Browse files Browse the repository at this point in the history
  • Loading branch information
fsubal committed Oct 15, 2023
1 parent c27d633 commit f96b73a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npx run-s build:* > $GITHUB_WORKSPACE/build.log
- run: npx run-s test:* > $GITHUB_WORKSPACE/test.log
- run: npx run-s build:* 2> $GITHUB_WORKSPACE/build.stderr.log
- run: npx run-s test:* 2> $GITHUB_WORKSPACE/test.stderr.log

- run: |
if grep -q "warn - " <(cat $GITHUB_WORKSPACE/*.log); then
echo 'build has unexpected warning'
if grep -q "warn" <(cat $GITHUB_WORKSPACE/*.log); then
echo 'looks like tailwind build has unexpected warnings'
exit 1
end
2 changes: 1 addition & 1 deletion src/第3章_Tailwind_CSSを導入する/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
// プロジェクトルートにないtailwind.config.jsを使っているからです(説明の都合上フォルダを章ごとに分けております)
// tailwind.config.jsをふつうにプロジェクトルートに置いてるケースでは特に真似する必要はありません
relative: true,
files: ["./src/index.html"],
files: ["./srca/index.html"],
},
theme: {
extend: {},
Expand Down

0 comments on commit f96b73a

Please sign in to comment.