Bump telemetry_poller from 1.1.0 to 1.2.0 #1496
Workflow file for this run
This file contains hidden or 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
on: [push] | |
name: build | |
jobs: | |
build: | |
# PostgreSQL setup according to [postgres-setup]. | |
# | |
# [postgres-setup]: https://help.github.com/en/actions/configuring-and-managing-workflows/creating-postgresql-service-containers | |
runs-on: ubuntu-24.04 | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_USER: ex_rss_test | |
POSTGRES_PASSWORD: ex_rss_test | |
# We prefer to explicitly set `POSTGRES_DB`. | |
# | |
# “If it is not specified, then the value of POSTGRES_USER will be | |
# used.” | |
# | |
# https://hub.docker.com/_/postgres | |
POSTGRES_DB: ex_rss_test | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
strategy: | |
matrix: | |
otp: [ '26.1' ] | |
elixir: [ '1.16.0', '1.17' ] | |
node: [ '22.x', '23.x' ] | |
name: OTP ${{matrix.otp}}, Elixir ${{matrix.elixir}}, Node.js ${{ matrix.node }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Elixir [OTP ${{ matrix.otp }}, Elixir ${{ matrix.elixir }}] | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ matrix.otp }} | |
elixir-version: ${{ matrix.elixir }} | |
- name: Set up Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Copy test configuration | |
run: | | |
cp config/test.ci.exs config/test.exs | |
- run: mix deps.get | |
- run: npm ci | |
working-directory: assets | |
- name: Run tests | |
run: mix test | |
- run: mix format --check-formatted | |
- run: | | |
npx prettier --check "js/**/*.js" "*.mjs" | |
working-directory: assets | |
- name: Build [Node.js ${{ matrix.node }}] | |
run: | | |
npm run deploy | |
working-directory: assets | |
- name: Build release [OTP ${{ matrix.otp }}, Elixir ${{ matrix.elixir }}] | |
run: | | |
env MIX_ENV=prod mix assets.deploy | |
env MIX_ENV=prod mix release |