Remove I18n#availableLocales, as it's not used anywhere. #147
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: js-tests | |
on: | |
pull_request_target: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: {} | |
jobs: | |
build: | |
name: Tests with Node ${{ matrix.node }} | |
runs-on: "ubuntu-latest" | |
if: | | |
github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target' || | |
github.actor != 'dependabot[bot]' | |
strategy: | |
fail-fast: false | |
matrix: | |
node: ["16", "18"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: vendor/bundle | |
key: > | |
${{ runner.os }}-${{ matrix.node }}-npm-${{ | |
hashFiles('package.json') }} | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install npm dependencies | |
run: | | |
yarn install | |
- name: Run Tests | |
run: | | |
export PATH="node_modules/.bin:$PATH" | |
yarn test:ci | |
yarn lint |