Skip to content

Commit

Permalink
add validate-data workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkrives committed Dec 11, 2024
1 parent e26cb91 commit 2f06074
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/validate-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Check

on:
push: {branches: [master]}
pull_request:
merge_group:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
ruby-version: '3.1'
xcode_version: 'Xcode_15.2'
java_version: '11'
java_distribution: temurin

jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: jdx/mise-action@v2
- run: npm ci
- run: mise run prettier -- --no-write --check

eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: jdx/mise-action@v2
- run: npm ci
- run: mise run lint

jest:
name: Jest
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: jdx/mise-action@v2
- run: npm ci
- run: mise run test -- --coverage
- name: Upload coverage
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4

data:
name: Data
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: jdx/mise-action@v2
- run: npm ci
- run: mise run validate
- run: mise run bundle-data

0 comments on commit 2f06074

Please sign in to comment.