You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _overviews/contributors/index.md
+24-17Lines changed: 24 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,9 @@ Examples of CI servers that are free for open source projects are [GitHub Action
50
50
[Travis CI](https://travis-ci.com), [Drone](https://drone.io) or [AppVeyor](https://appveyor.com).
51
51
52
52
Our example uses Github Actions. This feature is enabled by default on GitHub repositories. You can verify if that is
53
-
the case and enable them in the *Actions* section of the *Settings* tab of the repository.
53
+
the case in the *Actions* section of the *Settings* tab of the repository.
54
+
If *Disable all actions* is checked, then Actions are not enabled and you can activate them
55
+
by selecting *Allow all actions*, *Allow local actions only* or *Allow select actions*.
54
56
55
57
With Actions enabled, you can create a *workflow definition file*. A **workflow** is an automated procedure,
56
58
composed of one or more jobs. A **job** is a set of sequential steps that are executed on the same runner.
@@ -66,7 +68,7 @@ name: Continuous integration
66
68
on: push
67
69
68
70
jobs:
69
-
Tests:
71
+
ci:
70
72
runs-on: ubuntu-latest
71
73
steps:
72
74
- uses: actions/checkout@v2 # Retrieve the content of the repository
@@ -75,18 +77,23 @@ jobs:
75
77
run: sbt +test
76
78
~~~
77
79
78
-
This workflow is called *Continuous integration* and it will run every time one or more commits are pushed to
79
-
the repository. It contains only one job called *Tests*, which will run on an Ubuntu runner and that is composed
80
-
of three actions. `setup-scala` uses the sbt version specified in `project/build.properties` and the Scala
81
-
version defined in your `build.sbt`.
80
+
This workflow is called *Continuous integration* and it will run every time one
81
+
or more commits are pushed to the repository. It contains only one job called
82
+
*ci*, which will run on an Ubuntu runner and that is composed of three
83
+
actions. The action `setup-scala` installs the sbt launcher in the runner. Then
84
+
the job runs `sbt +test`, which loads the sbt version specified in
85
+
`project/build.properties`, and runs the project tests using the Scala version
86
+
defined in the file `build.sbt`.
82
87
83
-
The worfklow above will run at any push to any branch of the repository. You can
84
-
specify the branch or add more triggers such as pull requests, releases, tags or
85
-
schedules. More information about workflow triggers is available [here](https://docs.github.com/en/actions/reference/events-that-trigger-workflows).
86
-
while the `setup-scala` action is hosted [in this repository](https://github.com/olafurpg/setup-scala).
88
+
The workflow above will run at any push to any branch of the repository. You
89
+
can specify the branch or add more triggers such as pull requests, releases,
90
+
tags or schedules. More information about workflow triggers is available
0 commit comments