File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
# simple-ci
2
2
3
3
The ` simple-ci ` action allows you to easily build and test your Rust projects.
4
- See [ ` actions.yml ` ] for configuration options.
5
4
6
- [ `actions.yml` ] : ./actions.yml
5
+ See [ ` action.yml ` ] for configuration options.
6
+
7
+ [ `action.yml` ] : ./action.yml
7
8
8
9
## Examples
9
10
10
11
### Simple
12
+
11
13
This builds, tests, and checks the formatting of your project.
14
+
12
15
``` yaml
13
16
- uses : rust-lang/simpleinfra/github-actions/simple-ci@master
14
17
with :
15
18
check_fmt : true
16
19
` ` `
17
20
18
21
### Complete Template
22
+
19
23
This template builds and tests your project on stable, beta, and nightly across
20
24
linux, macos, windows.
21
25
22
26
` ` ` yaml
23
27
name : CI
28
+
24
29
on : [push, pull_request]
30
+
25
31
jobs :
26
32
build :
27
33
runs-on : ${{ matrix.os }}
@@ -39,20 +45,20 @@ jobs:
39
45
40
46
The action is written in NodeJS 12, and you can install the dependencies with:
41
47
42
- ` ` `
48
+ ` ` ` sh
43
49
npm install
44
50
```
45
51
46
52
### Running
47
53
48
- ```
54
+ ``` sh
49
55
npm start
50
56
```
51
57
52
58
GitHub Actions requires all the dependencies to be committed, so before
53
59
creating a commit you need to run:
54
60
55
- ```
61
+ ``` sh
56
62
npm run build
57
63
```
58
64
You can’t perform that action at this time.
0 commit comments