Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #16 from bitExpert/ci/add-node-latest
Browse files Browse the repository at this point in the history
Run CI also on latest Node version
  • Loading branch information
DanielRuf authored Mar 13, 2021
2 parents 9166cda + 3adaa08 commit 312282d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 312282d

Please sign in to comment.