Skip to content

Commit

Permalink
[CI] Filter runs of Smoke Test workflow (#15457)
Browse files Browse the repository at this point in the history
This workflow now only triggers on changes to paths that are related to
platform-specific code.
It also runs on a nightly schedule and can be triggered manually.

Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
  • Loading branch information
straight-shoota and Sija authored Feb 13, 2025
1 parent ca64539 commit 0f6bfdb
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# These jobs are smoke tests for platforms where we don't rund full tests.
# These jobs are smoke tests for platforms where we don't run full tests.
# They ensure that std_spec, compiler_spec and the compiler itself at least
# compile for the target with --cross-compile. But the binaries are not linked
# and executed. So this does not validate correct behaviour.
Expand Down Expand Up @@ -29,7 +29,20 @@
# Platforms for which we currently run full tests are excluded from this workflow.
name: Smoke tests

on: [push, pull_request]
on:
push:
paths:
- 'src/lib_c/**'
- 'src/crystal/system/**'
- '.github/workflows/smoke.yml'
pull_request:
branches:
- 'src/lib_c/**'
- 'src/crystal/system/**'
- '.github/workflows/smoke.yml'
schedule:
- cron: '0 3 * * *'
workflow_dispatch:

permissions: {}

Expand Down

0 comments on commit 0f6bfdb

Please sign in to comment.