From 3adaa08e06e6c29f30686e15c2b670d1b75d59d6 Mon Sep 17 00:00:00 2001 From: Daniel Ruf Date: Wed, 22 Jan 2020 10:39:47 +0100 Subject: [PATCH] Run CI also on latest Node version --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b769a84..4c3d9f6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 admin@example.com --username admin --password Admin12345! && \ + mattermost user create --email user@example.com --username user --password User12345! && \ + mattermost team create --name privateteam --display_name "Private Team" --private && \ + mattermost team add privateteam admin@example.com user@example.com && \ + 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 admin@example.com user@example.com && \ + mattermost channel add privateteam:publicchannel admin@example.com user@example.com' + - name: Install dependencies + run: yarn + - name: Run tests + run: yarn test