Enlève l’heuristique des organismes dans le déploiement (#2123) #7138
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: Tests | |
on: [push, pull_request] | |
jobs: | |
scala-build: | |
name: Scala Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- uses: harmon758/postgresql-action@v1 | |
with: | |
postgresql version: '10' | |
postgresql db: 'aplus' | |
postgresql user: 'aplus' | |
postgresql password: 'mysecretpassword' | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install npm dependencies | |
run: npm install | |
- name: Build the JS blob | |
run: npm run build | |
- name: Display geckodriver and firefox versions | |
run: | | |
which geckodriver | |
geckodriver --version | |
which firefox | |
firefox --version | |
# We compile the tests here so the test command can run faster | |
- name: Compile tests | |
run: "sbt Test/compile" | |
- name: Run tests | |
run: "sbt coverage test" | |
env: | |
GECKO_DRIVER: /usr/bin/geckodriver | |
FILES_OVH_S3_ACCESS_KEY: unused | |
FILES_OVH_S3_SECRET_KEY: unused | |
FILES_OVH_S3_ENDPOINT: https://unused.example.com | |
FILES_OVH_S3_REGION: unused | |
FILES_OVH_S3_BUCKET: unused | |
FILES_CURRENT_ENCRYPTION_KEY_ID: unused-key | |
FILES_ENCRYPTION_KEYS: "unused-key:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" | |
- name: Generate coverage report | |
run: "sbt coverageReport" | |
- name: Run codacy-coverage-reporter | |
uses: codacy/codacy-coverage-reporter-action@v1 | |
env: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
if: ${{ env.CODACY_PROJECT_TOKEN }} | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: 'target/scala-*/coverage-report/cobertura.xml' | |
ts-build: | |
name: TypeScript Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install npm dependencies | |
run: npm install | |
- name: Build the JS blob | |
run: npm run build |