File tree Expand file tree Collapse file tree 2 files changed +2
-31
lines changed
Expand file tree Collapse file tree 2 files changed +2
-31
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: rust test
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [ self-hosted-runner-experiment ]
66 pull_request :
77 branches : [ main ]
88
1111
1212jobs :
1313 build :
14- runs-on : ubuntu-latest
14+ runs-on : self-hosted
1515 strategy :
1616 matrix :
1717 db :
2828 - name : Checkout sources
2929 uses : actions/checkout@v2
3030
31- - name : Install stable toolchain
32- uses : actions-rs/toolchain@v1
33- with :
34- profile : minimal
35- toolchain : stable
36- override : true
37-
38- - run : rustup toolchain install stable --profile minimal
39-
40- - uses : Swatinem/rust-cache@v2
41- with :
42- # To only cache runs from `master`:
43- save-if : ${{ github.ref == 'refs/heads/master' }}
44- # Specifies what to use as the backend providing cache
45- # Can be set to either "github" or "buildjet"
46- # default: "github"
47- cache-provider : " github"
48-
49- - name : build docker-compose services for integration tests
50- run : docker compose -f docker-compose.yml up -d
51- env :
52- MYSQL_VERSION : ${{ matrix.db.mysql }}
53- PG_VERSION : ${{ matrix.db.postgres }}
54- MYSQL_MIGRATION_FILE : " ${{ matrix.db.mysql == '5.6' && 'mysql_migration_5_6.sql' || 'mysql_migration.sql' }}"
55-
56- - uses : GuillaumeFalourd/wait-sleep-action@v1
57- with :
58- time : ' 10' # for 10 seconds
59-
6031 - name : Check the docker-compose services running
6132 run : docker ps -a
6233
You can’t perform that action at this time.
0 commit comments