Skip to content
Draft
8 changes: 3 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ jobs:
export SCREENLY_CE_VERSION="0.0.0"
fi

cat src/manifest-${{ matrix.platform }}.json \
| jq --arg version "$SCREENLY_CE_VERSION" '.version = $version' \
> src/manifest.json
jq --arg version "$SCREENLY_CE_VERSION" '.version = $version' src/manifest-${{ matrix.platform }}.json > src/manifest.json

- name: Build Docker images
run: |
Expand All @@ -45,7 +43,7 @@ jobs:
run: |
docker run \
--rm \
-v $(pwd):/app:delegated \
-v "$(pwd):/app:delegated" \
-v /app/node_modules \
sce_webpack:latest \
/bin/bash -c "npx webpack --config webpack.dev.js && npm run test"
Expand All @@ -55,7 +53,7 @@ jobs:
mkdir artifacts
docker run \
--rm \
-v $(pwd)/artifacts:/app/artifacts:delegated \
-v "$(pwd)/artifacts:/app/artifacts:delegated" \
-v /app/artifacts/node_modules \
sce_webpack:latest \
/bin/bash -c "npm run build && cp -r dist/ artifacts/"
Expand Down
25 changes: 23 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Run ESLint
name: Run Linters

on:
pull_request:
Expand All @@ -12,7 +12,7 @@ on:
- v*.*

jobs:
build:
eslint:
runs-on: ubuntu-latest
name: Run ESLint
steps:
Expand All @@ -26,3 +26,24 @@ jobs:
- name: Run ESLint
run: |
./bin/host_eslint.sh

actionlint:
runs-on: ubuntu-latest
name: Run Linter for GitHub Actions Workflows
strategy:
matrix:
actionlint-version: ['1.7.7']
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download actionlint
run: |
ACTIONLINT_FILE="actionlint_${{ matrix.actionlint-version }}_linux_amd64.tar.gz"
ACTIONLINT_URL="https://github.com/rhysd/actionlint/releases/download"
ACTIONLINT_DOWNLOAD_URL="$ACTIONLINT_URL/v${{ matrix.actionlint-version }}/$ACTIONLINT_FILE"
curl -L -o actionlint.tar.gz "$ACTIONLINT_DOWNLOAD_URL"
tar xzf actionlint.tar.gz

- name: Run actionlint
run: ./actionlint -color