From d883051cf54eec5739522a2f9b3bfcc0aaed6824 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 | 58 +++++++++++++++++++++++++++++++++++ 1 file changed, 58 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..0edb6196 --- /dev/null +++ b/.github/workflows/angular.yml @@ -0,0 +1,58 @@ +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 + - run: yarn --frozen-lockfile + - uses: actions/setup-node@v3 + with: + node-version: ${{env.NODE_JS_VERSION}} + cache: 'yarn' + - uses: actions/cache@v3 + with: + key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} + path: node_modules + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: ${{env.NODE_JS_VERSION}} + cache: 'yarn' + - uses: actions/cache@v3 + with: + key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} + path: node_modules + - run: ls -la + - run: ls -la node_modules/ + - run: yarn --frozen-lockfile + - run: yarn lint + needs: [install-deps] + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: ${{env.NODE_JS_VERSION}} + cache: 'yarn' + - uses: actions/cache@v3 + with: + key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} + path: node_modules + - run: yarn --frozen-lockfile + - run: yarn build:lib + - run: yarn build:demo --base-href "/ngx-openlayers/" --progress false + needs: [install-deps]