Skip to content

fix(workflows): multi line command #677

fix(workflows): multi line command

fix(workflows): multi line command #677

Workflow file for this run

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 built with libsvtav1
# https://www.reddit.com/r/ffmpeg/comments/tb5frl/comment/i0glb7d/
run: |
wget https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n6.1-latest-linux64-gpl-6.1.tar.xz &&
tar Jxvf ffmpeg-n6.1-latest-linux64-gpl-6.1 &&
sudo cp -r ffmpeg-n6.1-latest-linux64-gpl-6.1/bin/* /usr/local/bin/
- 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 }}