Only run $.getJSON once (#524) #41
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: Build and Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: ['18.x'] | |
steps: | |
- uses: actions/checkout@v3 | |
# Setup java for access to `ant` | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Install node dependencies | |
run: npm ci | |
- name: Test building with ant | |
run: | | |
cd resources/build && ant && cd .. | |
- name: Run js unit tests | |
run: npm run test | |
- name: Prettier check (certain files) | |
run: npx prettier -c resources/js/test resources/js/Media/VideoPlayer.jsx |