-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 910 Bytes
/
ci.yaml
File metadata and controls
45 lines (38 loc) · 910 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
40
41
42
43
44
45
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
- run: cargo test
build:
permissions: write-all
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
# Test the action in Docker and print the output
- name: Release on merge action
id: release
uses: ./
with:
dry-run: true
# Use the output from the `release` step
- name: Get the output version
run: |
echo "version ${{ steps.release.outputs.version }}"
echo "tag ${{ steps.release.outputs.tag }}"