fix: get available ffmpeg versions #670
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: CI test | |
on: | |
# Triggers the workflow on push or pull request events but only for the dev branch | |
- pull_request | |
- push | |
# Allows you to run this workflow manually from the Actions tab | |
- workflow_dispatch | |
jobs: | |
install-and-test: | |
runs-on: ubuntu-latest | |
services: | |
rumors-test-db: | |
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.3.2 | |
ports: | |
- 62223:9200 | |
permissions: # Required by google-github-actions/auth | |
contents: 'read' | |
id-token: 'write' | |
steps: | |
- name: Setup ffmpeg | |
run: sudo apt update && apt policy ffmpeg && sudo apt install -y ffmpeg=7:6.1.1-1ubuntu1 | |
- run: ffmpeg -encoders | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
cache: 'npm' | |
- uses: google-github-actions/auth@v1 | |
with: | |
workload_identity_provider: ${{ secrets.GC_WORKLOAD_IDENTITY_PROVIDER }} | |
service_account: ${{ secrets.GC_SERVICE_ACCOUNT }} | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run test -- --coverage | |
env: | |
GCS_CREDENTIALS: ${{ secrets.GCS_CREDENTIALS }} | |
GCS_BUCKET_NAME: ${{ secrets.GCS_BUCKET_NAME }} | |
GCS_MEDIA_FOLDER: github/${{ github.run_number }}_${{ github.run_attempt }}/ | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
TEST_DATASET: rumors_api_test_dataset | |
- name: Update coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |