-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (36 loc) · 903 Bytes
/
Copy pathci.yml
File metadata and controls
39 lines (36 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.4.0
- run: bun install --frozen-lockfile
- run: bun run check
- run: bun test
- run: bun run compile
- name: Compiled binary smoke test
run: |
test "$(./dist/wirebot version)" = "$(bun -p 'require("./package.json").version')"
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Build the image (no push)
uses: docker/build-push-action@v6
with:
context: .
load: true
tags: wirebot:ci
- name: Image smoke test
run: docker run --rm wirebot:ci version