Skip to content

Commit

Permalink
[ci] Move from Gitlab to Github
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam committed Oct 31, 2024
1 parent 991821d commit 41c9637
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 21 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/calc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: calc

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: E2E Tests

on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
e2e:
name: e2e
runs-on: ubuntu-latest
container:
image: node:18
strategy:
matrix:
include:
- chain-name: westend
chain-url: wss://westend-rpc.polkadot.io
- chain-name: kusama
chain-url: wss://apps-kusama-rpc.polkadot.io
- chain-name: polkadot
chain-url: wss://apps-rpc.polkadot.io
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: e2e tests
run: |
yarn --immutable
echo "Tests for ${{ matrix.chain-name }}"
yarn test:latest-e2e-tests --log-level info --chain ${{ matrix.chain-name }} --local ${{ matrix.chain-url }}
38 changes: 21 additions & 17 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
lint:
# The type of runner that the job will run on
Expand All @@ -21,7 +25,7 @@ jobs:
- name: Install Node v18
uses: actions/setup-node@v4
with:
node-version: '18.14'
node-version: "18.14"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand All @@ -41,7 +45,7 @@ jobs:
- name: Linter.
run: yarn lint
tests:
# The type of runner that the job will run on
# The type of runner that the job will run on
runs-on: ubuntu-latest

steps:
Expand All @@ -51,7 +55,7 @@ jobs:
- name: Install Node v18
uses: actions/setup-node@v4
with:
node-version: '18.14'
node-version: "18.14"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down Expand Up @@ -82,7 +86,7 @@ jobs:
- name: Install Node v18
uses: actions/setup-node@v4
with:
node-version: '18.14'
node-version: "18.14"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down Expand Up @@ -113,7 +117,7 @@ jobs:
- name: Install Node v18
uses: actions/setup-node@v4
with:
node-version: '18.14'
node-version: "18.14"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand All @@ -134,11 +138,11 @@ jobs:
run: yarn build:docs

build-npm-release:
# This test is to make sure sidecar can release a binary without any errors.
# This script does not publish a release, but instead uses yarn to create a tarball and
# install it locally. Once installed a binary is attached to sidecars node_modules, and that
# binary is then tested against. For more in depth information reference the docs at
# `../../scripts/README.md`.
# This test is to make sure sidecar can release a binary without any errors.
# This script does not publish a release, but instead uses yarn to create a tarball and
# install it locally. Once installed a binary is attached to sidecars node_modules, and that
# binary is then tested against. For more in depth information reference the docs at
# `../../scripts/README.md`.

runs-on: ubuntu-latest

Expand All @@ -147,10 +151,10 @@ jobs:
node-version: [18.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn test:test-release
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn test:test-release
8 changes: 6 additions & 2 deletions .github/workflows/semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ on:
- opened
- edited
- synchronize


concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
validate-title:
permissions:
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
name: Validate PR Title
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 41c9637

Please sign in to comment.