Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/component-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: yarn

- name: Yarn install
run: yarn install

- name: ESLint
if: ${{ always() }}
if: ${{ !cancelled() }}
run: yarn eslint --ext .js,.js.es6 --no-error-on-unmatched-pattern {test,javascripts}

- name: Prettier
if: ${{ always() }}
if: ${{ !cancelled() }}
shell: bash
run: |
yarn prettier -v
Expand All @@ -44,5 +44,5 @@ jobs:
fi

- name: Ember template lint
if: ${{ always() }}
if: ${{ !cancelled() }}
run: yarn ember-template-lint --no-error-on-unmatched-pattern javascripts
7 changes: 6 additions & 1 deletion .github/workflows/component-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,14 @@ jobs:
if: steps.app-cache.outputs.cache-hit != 'true'
run: rm -rf tmp/app-cache/uploads && cp -r public/uploads tmp/app-cache/uploads

- name: Create theme archive
run: |
cd tmp/component
git archive --format=tar.gz HEAD > ../../theme.tar.gz

- name: Component QUnit
run: |
THEME_NAME=$(ruby -e 'require "json"; puts JSON.parse(File.read("tmp/component/about.json"))["name"]')
bundle exec rake themes:install -- "--{\"$THEME_NAME\": \"tmp/component\"}"
THEME_ARCHIVE=theme.tar.gz bundle exec rake themes:install:archive
UNICORN_TIMEOUT=120 bundle exec rake "themes:qunit[name,$THEME_NAME]"
timeout-minutes: 10