From 52e266127c9d6a35f2a222039238d75795e54c55 Mon Sep 17 00:00:00 2001 From: WEBER Logan Date: Thu, 28 Sep 2023 14:48:53 +0200 Subject: [PATCH] ci: use github actions instead of travis --- .github/workflows/angular.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/angular.yml diff --git a/.github/workflows/angular.yml b/.github/workflows/angular.yml new file mode 100644 index 00000000..e0ee4232 --- /dev/null +++ b/.github/workflows/angular.yml @@ -0,0 +1,42 @@ +on: + push: + branches: [ "next" ] + pull_request: + branches: [ "next" ] + +env: + NODE_JS_VERSION: 12 + +jobs: + install-deps: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: ${{env.NODE_JS_VERSION}} + cache: 'yarn' + + lint: + container: node:12 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: ${{env.NODE_JS_VERSION}} + cache: 'yarn' + needs: [install-deps] + + build: + container: node:12 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: ${{env.NODE_JS_VERSION}} + cache: 'yarn' + - run: yarn build:lib + - run: yarn build:demo --base-href "/ngx-openlayers/" --progress false + needs: [install-deps]