This repository was archived by the owner on Jan 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,33 @@ jobs: | |
run: yarn | ||
- name: Run tests | ||
run: yarn test | ||
|
||
build_latest: | ||
runs-on: ubuntu-latest | ||
name: Node latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '*' | ||
- name: Pull and start mattermost-preview image | ||
run: docker run --name mattermost-preview -d --publish 8065:8065 --add-host dockerhost:127.0.0.1 mattermost/mattermost-preview | ||
- name: Wait until server is running | ||
run: sleep 60 | ||
- name: check node version | ||
run: node -v | ||
- name: Create test users | ||
run: | | ||
docker exec mattermost-preview bash -c ' \ | ||
mattermost user create --system_admin --email [email protected] --username admin --password Admin12345! && \ | ||
mattermost user create --email [email protected] --username user --password User12345! && \ | ||
mattermost team create --name privateteam --display_name "Private Team" --private && \ | ||
mattermost team add privateteam [email protected] [email protected] && \ | ||
mattermost channel create --team privateteam --name privatechannel --display_name "My Private Channel" --private && \ | ||
mattermost channel create --team privateteam --name publicchannel --display_name "My Public Channel" && \ | ||
mattermost channel add privateteam:privatechannel [email protected] [email protected] && \ | ||
mattermost channel add privateteam:publicchannel [email protected] [email protected]' | ||
- name: Install dependencies | ||
run: yarn | ||
- name: Run tests | ||
run: yarn test |